:root {
  --bg: #0B0806;
  --bg-2: #120C08;
  --card: #17110C;
  --line: rgba(255, 179, 0, 0.16);
  --amber: #FFB300;
  --amber-2: #FFC94A;
  --orange: #F26B1D;
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.68);
  --radius: 16px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; max-width: 34ch; margin-top: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn svg { font-size: 1.05em; }
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(180deg, var(--amber-2), var(--amber));
  color: #1A1206;
  box-shadow: 0 8px 24px rgba(255, 179, 0, .25);
}
.btn--primary:hover { box-shadow: 0 10px 30px rgba(255, 179, 0, .4); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: var(--text); background: rgba(0, 0, 0, .25); }
.btn--ghost:hover { border-color: var(--amber); }
.btn--sm { padding: 9px 22px; font-size: .9rem; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: none; border: 0; color: var(--text); cursor: pointer; font-size: 22px;
}
.icon-btn:hover { color: var(--amber); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--amber); font-weight: 500; font-size: .95rem; }
.link:hover { color: var(--amber-2); }

/* Eyebrows & headings */
.eyebrow {
  color: var(--amber); text-transform: uppercase; letter-spacing: .2em;
  font-size: .85rem; font-weight: 500;
}
.eyebrow--icon { display: flex; align-items: center; gap: 12px; }
.eyebrow--icon svg { font-size: 1.9rem; color: var(--amber); }
.h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; line-height: 1.2; }
.h2--xl { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-top: 8px; }
.h2--icon { display: flex; align-items: center; gap: 14px; }
.h2--icon svg { color: var(--amber); font-size: 1.1em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .2s ease, box-shadow .2s ease;
}
.nav.scrolled { background: rgba(11, 8, 6, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.6rem; letter-spacing: -.01em; }
.brand em { font-style: normal; color: var(--amber); }
.nav__links { display: flex; gap: 36px; margin: 0 auto; font-weight: 500; font-size: .95rem; }
.nav__links a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__links a:hover { color: var(--amber); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; }

/* Hero */
.hero { position: relative; margin-top: -76px; padding-top: 76px; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0 0 0 auto; width: min(calc(50% + 160px), 1100px); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(11, 8, 6, .55) 22%, transparent 45%),
    linear-gradient(0deg, var(--bg) 0%, transparent 25%),
    linear-gradient(180deg, var(--bg) 0%, transparent 18%);
}
.hero__content { position: relative; padding-top: 40px; padding-bottom: 60px; }
.hero__title { font-size: clamp(3.4rem, 7vw, 5.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin-top: 14px; }
.hero__title span { color: var(--amber); }
.hero__lead { font-size: clamp(1.3rem, 2.2vw, 1.75rem); color: rgba(255, 255, 255, .88); line-height: 1.3; margin-top: 14px; max-width: 24ch; }
.hero__text { color: var(--muted); font-size: 1.05rem; max-width: 40ch; margin-top: 22px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero__social { display: flex; align-items: center; gap: 16px; margin-top: 40px; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.avatars { display: flex; }
.avatars span {
  width: 40px; height: 40px; border-radius: 50%; margin-left: -10px;
  display: grid; place-items: center; font-weight: 600; font-size: .9rem;
  background: var(--c); border: 2px solid var(--bg);
}
.avatars span:first-child { margin-left: 0; }

/* Stats */
.stats { padding: 20px 0 36px; }
.stats__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 16px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .1); }
.stat__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 179, 0, .1); color: var(--amber); font-size: 26px;
}
.stat strong { display: block; font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.stat div > span { font-size: .85rem; color: var(--muted); }

/* Events */
.events {
  padding: 28px 0 64px;
  background: var(--bg-2);
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-radius: 40px 40px 0 0;
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head .muted { margin-top: 6px; }
.carousel { position: relative; }
.events__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.events__track::-webkit-scrollbar { display: none; }
.event {
  scroll-snap-align: start;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, border-color .2s ease;
}
.event:hover { transform: translateY(-3px); border-color: var(--line); }
.event__img { position: relative; aspect-ratio: 2 / 1; }
.event__img img { width: 100%; height: 100%; object-fit: cover; }
.date {
  position: absolute; top: 10px; left: 10px;
  display: grid; place-items: center; width: 46px; padding: 6px 0 4px;
  background: #fff; color: #111; border-radius: 10px;
  font-size: 1.3rem; font-weight: 700; line-height: 1;
}
.date span { font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.event__body { padding: 14px 16px 16px; }
.event h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.meta { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.meta svg { color: var(--amber); font-size: .95rem; }
.event__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.price { color: var(--amber); font-weight: 600; font-size: .95rem; }
.save { color: var(--muted); font-size: 18px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; }
.save:hover { color: var(--amber); background: rgba(255, 179, 0, .1); }
.carousel__next {
  position: absolute; right: -18px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px;
  background: rgba(11, 8, 6, .85); color: #fff; border: 1px solid rgba(255, 255, 255, .25); cursor: pointer;
}
.carousel__next:hover { border-color: var(--amber); color: var(--amber); }
.carousel__next[hidden] { display: none; }

/* Community */
.community { position: relative; padding: 90px 0 0; overflow: hidden; background: var(--bg); }
.swirl--top {
  position: absolute; left: -10%; top: -120px; width: 80%; height: 260px;
  border-radius: 50%; border-bottom: 8px solid var(--orange);
  filter: drop-shadow(0 0 18px rgba(242, 107, 29, .55));
  transform: rotate(-4deg); opacity: .9; pointer-events: none;
}
.community__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: end; }
.community__grid > div:first-child { padding-bottom: 60px; }
.features { list-style: none; padding: 0; margin: 30px 0 32px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; text-align: center; }
.features li { display: flex; flex-direction: column; align-items: center; }
.ring {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(255, 179, 0, .5); color: var(--amber); font-size: 22px; margin-bottom: 10px;
}
.features strong { font-size: .9rem; font-weight: 600; }
.features li > span:last-child { font-size: .75rem; color: var(--muted); line-height: 1.35; }
.community__phones img { width: 100%; max-width: 560px; margin-left: auto; }

/* Organisers */
.host { position: relative; padding: 70px 0 80px; overflow: hidden; background: var(--bg); border-top: 1px solid rgba(255, 255, 255, .06); }
.host__media { position: absolute; inset: 0 0 0 auto; width: min(58%, 820px); }
.host__media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.host__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 8, 6, .5) 25%, transparent 50%);
}
.host__content { position: relative; }
.checks { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 40px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.checks svg { color: var(--amber); font-size: 20px; }
.checks .soon { color: rgba(255, 255, 255, .7); }
.checks .soon svg { color: rgba(255, 179, 0, .45); }
.tag {
  font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--amber); border: 1px solid rgba(255, 179, 0, .45); border-radius: 999px; padding: 2px 8px;
}

/* Footer */
.footer { background: var(--bg-2); border-top: 1px solid rgba(255, 255, 255, .06); padding: 48px 0 24px; }
.footer__grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__grid .brand { font-size: 1.3rem; margin-bottom: 12px; }
.footer__grid p { max-width: 46ch; font-size: .9rem; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; font-size: .9rem; }
.footer__links a:hover { color: var(--amber); }
.footer__base { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .8rem; color: rgba(255, 255, 255, .5); }

/* Responsive */
@media (max-width: 1100px) {
  .events__track { grid-auto-columns: calc((100% - 2 * 20px) / 2.6); }
  .carousel__next { right: 4px; }
  .features { grid-template-columns: repeat(3, 1fr); row-gap: 22px; max-width: 420px; }
}

@media (max-width: 900px) {
  .nav__toggle { display: inline-grid; }
  .nav__actions .icon-btn:not(.nav__toggle), .nav__actions .btn--ghost { display: none; }
  .nav__links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
    background: rgba(11, 8, 6, .97); border-bottom: 1px solid var(--line);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }

  .hero { display: block; min-height: 0; }
  .hero__media { position: relative; inset: auto; width: 100%; height: 340px; }
  .hero__media::after { background: linear-gradient(0deg, var(--bg) 0%, transparent 45%), linear-gradient(180deg, var(--bg) 0%, transparent 25%); }
  .hero__content { margin-top: -60px; padding-top: 0; }

  .stats__row { grid-template-columns: repeat(2, 1fr); gap: 8px 0; }
  .stat { justify-content: flex-start; }
  .stat + .stat { border-left: 0; }

  .community { padding-top: 60px; }
  .community__grid { grid-template-columns: 1fr; }
  .community__grid > div:first-child { padding-bottom: 0; }
  .community { padding-bottom: 32px; }
  .community__phones img { margin: 0 auto; }

  .host { padding-top: 0; }
  .host__media { position: relative; inset: auto; width: 100%; height: 260px; }
  .host__media::after { background: linear-gradient(0deg, var(--bg) 0%, transparent 50%); }
  .host__content { margin-top: -20px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .brand { font-size: 1.35rem; }
  .brand img { width: 36px; height: 36px; }
  .nav__actions { gap: 4px; }
  .hero__media { height: 260px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .stat { gap: 12px; padding: 10px 4px; }
  .stat__icon { width: 44px; height: 44px; font-size: 22px; }
  .stat strong { font-size: 1.15rem; }
  .events { border-radius: 28px 28px 0 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .events__track { grid-auto-columns: 82%; gap: 14px; }
  .carousel__next { display: none; }
  .checks { grid-template-columns: 1fr; }
  .host__content .btn, .community .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Signed-in / signed-out (set on <body> by js/account.js) */
body:not([data-auth="in"]) [data-when="in"],
body:not([data-auth="out"]) [data-when="out"] { display: none !important; }

.account { position: relative; }
.account__btn {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(180deg, var(--amber-2), var(--amber)); color: #1A1206;
  border: 0; font: 600 .9rem 'Poppins', sans-serif;
}
.account__menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; z-index: 60;
  display: flex; flex-direction: column; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.account__menu[hidden] { display: none; }
.account__who { padding: 8px 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 6px; }
.account__who strong { display: block; font-weight: 600; }
.account__who span { font-size: .8rem; color: var(--muted); word-break: break-all; }
.account__menu a, .account__menu button {
  padding: 9px 12px; border-radius: 8px; font: 500 .9rem 'Poppins', sans-serif;
  text-align: left; background: none; border: 0; color: var(--text); cursor: pointer;
}
.account__menu a:hover, .account__menu button:hover { background: rgba(255, 179, 0, .1); color: var(--amber); }
.account__menu button { border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0 0 8px 8px; margin-top: 6px; }

/* Login / sign up page */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth__back { margin-left: auto; }
.auth { position: relative; flex: 1; display: grid; place-items: center; padding: 32px 16px 64px; }
.auth__bg { position: absolute; inset: 0; overflow: hidden; }
.auth__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: blur(2px); }
.auth__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(11, 8, 6, .55), var(--bg) 75%); }
.auth__card {
  position: relative; width: 100%; max-width: 420px; padding: 32px 28px;
  background: rgba(23, 17, 12, .92); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55); backdrop-filter: blur(8px);
}
.auth__card h1 { font-size: 1.8rem; font-weight: 600; }
.auth__card > .muted { margin: 6px 0 22px; font-size: .95rem; }
.field { display: block; margin-bottom: 14px; }
.field[hidden] { display: none; }
.field span { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 12px; font: 400 1rem 'Poppins', sans-serif;
  background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid rgba(255, 255, 255, .14);
}
.field input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 179, 0, .2); }
.auth__forgot, .auth__switch button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--amber); font: 500 .85rem 'Poppins', sans-serif;
}
.auth__forgot[hidden] { display: none; }
.auth__forgot:hover, .auth__switch button:hover { color: var(--amber-2); text-decoration: underline; }
.auth__message { margin-top: 14px; padding: 10px 12px; border-radius: 10px; font-size: .88rem; }
.auth__message[hidden] { display: none; }
.auth__message--error { background: rgba(229, 57, 53, .14); color: #FF8A80; }
.auth__message--info { background: rgba(255, 179, 0, .12); color: var(--amber-2); }
.auth__submit { width: 100%; justify-content: center; margin-top: 20px; }
.auth__submit:disabled { opacity: .6; cursor: wait; transform: none; }
.auth__switch { margin-top: 18px; text-align: center; font-size: .9rem; color: var(--muted); }
.auth__switch button { font-size: .9rem; }

/* ================= Events pages ================= */
.h3 { font-size: 1.25rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.small { font-size: .82rem; }
.center { text-align: center; }
.nav__links a[aria-current="page"] { color: var(--amber); border-bottom-color: var(--amber); }
.btn--danger:hover { border-color: #FF6B5E; color: #FF8A80; }
.icon-btn--sm { width: 32px; height: 32px; font-size: 16px; color: var(--muted); }
.loading { padding: 40px 0; text-align: center; grid-column: 1 / -1; }
.count {
  font-size: .75rem; font-weight: 600; color: #1A1206; background: var(--amber);
  border-radius: 999px; padding: 1px 9px; line-height: 1.6;
}
.tag--ended { display: inline-block; margin-top: 14px; color: #FF8A80; border-color: rgba(255, 138, 128, .5); }

/* Hero + mode switch */
.ev-hero { position: relative; margin-top: -76px; padding: 116px 0 44px; overflow: hidden; }
.ev-hero__bg { position: absolute; inset: 0; }
.ev-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .32; }
.ev-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 8, 6, .6), var(--bg) 92%); }
.ev-hero__inner { position: relative; }
.ev-hero__title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.1; margin: 10px 0 22px; letter-spacing: -.01em; }
.ev-hero__title span { color: var(--amber); }
.ev-hero__copy .hero__text { margin-top: 0; }
.ev-hero__copy[hidden] { display: none; }

.mode {
  display: inline-grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; margin-bottom: 30px;
  background: rgba(23, 17, 12, .85); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(8px);
}
.mode__btn {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 13px; cursor: pointer;
  background: none; border: 0; color: var(--muted); text-align: left; font-family: inherit;
  transition: background .15s ease, color .15s ease;
}
.mode__btn svg { font-size: 22px; }
.mode__btn strong { display: block; font-size: .98rem; font-weight: 600; color: var(--text); }
.mode__btn small { font-size: .78rem; }
.mode__btn:hover { background: rgba(255, 255, 255, .05); }
.mode__btn.is-active { background: linear-gradient(180deg, var(--amber-2), var(--amber)); color: rgba(26, 18, 6, .75); }
.mode__btn.is-active strong { color: #1A1206; }

.search {
  display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 8px; max-width: 860px; padding: 8px;
  background: rgba(23, 17, 12, .92); border: 1px solid var(--line); border-radius: 999px;
}
.search__field { display: flex; align-items: center; gap: 10px; padding: 0 16px; color: var(--amber); }
.search__field + .search__field { border-left: 1px solid rgba(255, 255, 255, .1); }
.search__field input, .search__field select {
  flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text);
  font: 400 .98rem 'Poppins', sans-serif; padding: 10px 0;
}
.search__field select option { background: var(--card); }
.search .btn { padding: 12px 28px; }

/* Discover */
.ev-section { padding-top: 12px; padding-bottom: 72px; }
.ev-section[hidden] { display: none; }
.block { margin-bottom: 30px; }
.block[hidden] { display: none; }
.block__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.block__head .muted { font-size: .9rem; }

.days { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; scrollbar-color: rgba(255, 179, 0, .35) transparent; scroll-snap-type: x proximity; }
.day {
  flex: 0 0 auto; width: 68px; padding: 10px 0 8px; border-radius: 16px; cursor: pointer; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .08); color: var(--muted); font-family: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.day:hover { border-color: var(--line); transform: translateY(-2px); }
.day strong { font-size: 1.35rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.day__top, .day__month { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.day__dots { display: flex; gap: 3px; height: 6px; margin-top: 3px; }
.day__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.day--any strong { font-size: .95rem; padding: 6px 0 9px; }
.day.has-events { border-color: rgba(255, 179, 0, .3); }
.day.is-active { background: linear-gradient(180deg, var(--amber-2), var(--amber)); border-color: transparent; color: rgba(26, 18, 6, .75); }
.day.is-active strong { color: #1A1206; }
.day.is-active .day__dots i { background: #1A1206; }

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; border-radius: 16px; cursor: pointer;
  background: radial-gradient(circle at 100% 0, rgba(242, 107, 29, .18), transparent 60%), var(--card);
  border: 1px solid rgba(255, 255, 255, .08); color: var(--text); text-align: left; font-family: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.cat:hover { border-color: var(--line); transform: translateY(-2px); }
.cat__emoji { font-size: 1.7rem; line-height: 1; margin-bottom: 8px; }
.cat strong { font-size: .92rem; font-weight: 600; }
.cat small { font-size: .75rem; color: var(--muted); }
.cat.is-active { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar__right { display: flex; align-items: center; gap: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font: 500 .85rem 'Poppins', sans-serif;
  background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, .2);
}
.chip:hover { border-color: var(--amber); }
.chip.is-active { background: rgba(255, 179, 0, .15); border-color: var(--amber); color: var(--amber); }
.select {
  padding: 8px 12px; border-radius: 10px; font: 500 .85rem 'Poppins', sans-serif;
  background: var(--card); color: var(--text); border: 1px solid rgba(255, 255, 255, .15);
}

.egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.ecard {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, border-color .2s ease;
}
a.ecard:hover { transform: translateY(-3px); border-color: var(--line); }
.ecard--past { opacity: .6; }
.ecard__media { position: relative; }
.ev-img { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: #1E150E; }
.ev-img img { width: 100%; height: 100%; object-fit: cover; }
.ev-img--fallback {
  display: grid; place-items: center; font-size: 3rem;
  background: radial-gradient(circle at 30% 20%, rgba(255, 201, 74, .35), transparent 55%), linear-gradient(135deg, #FF8F00, #E91E63);
}
.ecard__price {
  position: absolute; right: 10px; top: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(11, 8, 6, .85); color: var(--amber); font-size: .8rem; font-weight: 600;
}
.ecard__price--free { background: var(--amber); color: #1A1206; }
.ecard__flag {
  position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px;
  background: rgba(11, 8, 6, .85); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
.ecard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.ecard__cat { font-size: .75rem; color: var(--amber); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.ecard h3 { font-size: 1.05rem; font-weight: 600; margin: 2px 0 6px; line-height: 1.3; }
.ecard__host { font-size: .78rem; color: var(--muted); margin-top: 8px; }

.empty { grid-column: 1 / -1; text-align: center; padding: 56px 16px; border: 1px dashed rgba(255, 255, 255, .15); border-radius: var(--radius); }
.empty__emoji { font-size: 2.6rem; display: block; margin-bottom: 8px; }
.empty .h3 { justify-content: center; }
.empty .muted { margin: 6px auto 0; max-width: 40ch; }
.empty .hero__ctas { justify-content: center; margin-top: 20px; }

/* Host */
.steps { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--card); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); }
.steps__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; font-weight: 700; background: rgba(255, 179, 0, .15); color: var(--amber); }
.steps li > span:last-child { color: var(--muted); font-size: .9rem; }
.host-out { text-align: center; padding: 48px 16px; border: 1px dashed rgba(255, 255, 255, .15); border-radius: var(--radius); }
.host-out .muted { margin-top: 8px; }
.host-out .hero__ctas { justify-content: center; margin-top: 22px; }

.host-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 44px; }
.panel { background: var(--card); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 24px; }
.panel + .panel { margin-top: 18px; }
.panel[hidden] { display: none; }
.host-form .h3 { margin-bottom: 18px; }
.host-form .btn { margin-top: 8px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 14px; }
fieldset.field legend { font-size: .85rem; font-weight: 500; margin-bottom: 8px; padding: 0; }
.field textarea, .cform textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; font: 400 .98rem 'Poppins', sans-serif; resize: vertical;
  background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid rgba(255, 255, 255, .14);
}
.field textarea:focus, .cform textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 179, 0, .2); }
.field input[type="date"], .field input[type="time"] { color-scheme: dark; }
.field em { font-style: normal; font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.field-row--price { grid-template-columns: auto 1fr; align-items: center; gap: 20px; margin-bottom: 14px; min-height: 48px; }
.field-row--price .field { margin-bottom: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: .85rem;
  border: 1px solid rgba(255, 255, 255, .2);
}
.pill input:checked + span { background: rgba(255, 179, 0, .15); border-color: var(--amber); color: var(--amber); }
.pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 179, 0, .3); }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; font-size: .92rem; }
.toggle input { width: 18px; height: 18px; accent-color: var(--amber); }
.soon-note { font-size: .85rem; color: var(--muted); margin: 4px 0 6px; }
.host-preview { position: sticky; top: 96px; }
.host-preview .eyebrow { margin-bottom: 12px; }
.host-preview .small { margin-top: 10px; }

.hosted { display: flex; flex-direction: column; gap: 8px; }
.hosted__bar { display: flex; align-items: center; gap: 8px; }
.hosted__bar .going { margin-right: auto; }
.going { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.going svg { color: var(--amber); }

/* Event detail */
.ed-hero { position: relative; margin-top: -76px; padding: 104px 0 36px; overflow: hidden; }
.ed-hero__bg { position: absolute; inset: -40px; }
.ed-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(40px) saturate(1.2); opacity: .35; }
.ed-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg)); pointer-events: none; }
.ed-hero .container { position: relative; z-index: 1; }
.ed-back { margin-bottom: 18px; }
.ed-back svg { font-size: 1.1em; }
.ed-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.ed-banner { border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.ed-banner.ev-img--fallback { font-size: 5rem; }
.ed-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; line-height: 1.15; margin: 6px 0 8px; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.facts li { display: flex; align-items: flex-start; gap: 12px; font-size: .98rem; }
.facts svg { color: var(--amber); font-size: 20px; margin-top: 2px; }

.ed-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 72px; }
.ed-main .panel .h3 { margin-bottom: 12px; }
.ed-main .panel .btn { margin-top: 14px; }
.ed-desc { white-space: pre-wrap; color: rgba(255, 255, 255, .85); }
.ed-side { position: sticky; top: 96px; }
.ticket__price { font-size: 1.8rem; font-weight: 700; color: var(--amber); line-height: 1.2; }
.ticket__cta { width: 100%; justify-content: center; margin-top: 18px; }
.ticket .center { margin-top: 10px; }
.ticket__actions { display: grid; gap: 4px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.action {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer;
  background: none; border: 0; color: var(--text); font: 500 .92rem 'Poppins', sans-serif; text-align: left;
}
.action svg { color: var(--amber); font-size: 18px; }
.action:hover { background: rgba(255, 179, 0, .08); }
.action.is-active { color: var(--amber); }
.stub {
  position: relative; margin-top: 18px; padding: 18px; text-align: center; border-radius: 14px;
  background: rgba(255, 179, 0, .08); border: 1.5px dashed rgba(255, 179, 0, .5);
}
.stub__code { font-size: 1.6rem; font-weight: 700; letter-spacing: .12em; margin: 4px 0; }

.avatar {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), #C2185B); font-size: .75rem; font-weight: 600;
}
.people { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.people li { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: .88rem; }
.people li.muted { padding: 4px 10px; background: none; }
.cform { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-bottom: 18px; }
.comments { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.comments li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.comments__who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.comments__text { white-space: pre-wrap; color: rgba(255, 255, 255, .85); font-size: .95rem; margin-top: 2px; word-break: break-word; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100; max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 12px; background: #2A1E14; border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5); font-size: .92rem;
}
.toast[hidden] { display: none; }

@media (max-width: 1000px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .host-grid, .ed-grid { grid-template-columns: 1fr; }
  .host-preview, .ed-side { position: static; }
  .host-preview { max-width: 380px; }
  .ed-side { order: -1; }
}
@media (max-width: 760px) {
  .search { grid-template-columns: 1fr; border-radius: 20px; }
  .search__field { padding: 4px 12px; }
  .search__field + .search__field { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .search .btn { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .ed-hero__grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 600px) {
  .mode { display: grid; width: 100%; }
  .mode__btn { padding: 10px 12px; gap: 8px; }
  .mode__btn small { display: none; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row > .field:first-child { grid-column: 1 / -1; }
  .field-row--price { grid-template-columns: 1fr; gap: 12px; }
  .panel { padding: 18px; }
  .toolbar__right { width: 100%; justify-content: space-between; }
  .cform { grid-template-columns: 1fr; }
}

/* ================= Profile page ================= */
.people li a, .plist a { display: flex; align-items: center; gap: 8px; }
.people li a:hover, .plist a:hover, .comments__who a:hover { color: var(--amber); }

.phero { position: relative; margin-top: -76px; padding: 116px 0 0; overflow: hidden; }
.phero__bg {
  position: absolute; inset: 0 0 auto; height: 260px;
  background:
    radial-gradient(ellipse at 20% 0, rgba(255, 179, 0, .28), transparent 60%),
    radial-gradient(ellipse at 90% 30%, rgba(233, 30, 99, .22), transparent 55%),
    linear-gradient(180deg, #1A110A, var(--bg));
}
.phero__inner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.pavatar {
  width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--amber-2), var(--amber)); color: #1A1206;
  font-size: 2.6rem; font-weight: 700; border: 5px solid var(--bg); box-shadow: 0 0 0 2px rgba(255, 179, 0, .5), 0 16px 40px rgba(0, 0, 0, .5);
}
.ptitle { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1.15; }
.pbio { margin-top: 8px; color: rgba(255, 255, 255, .85); max-width: 52ch; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .82rem;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.pchip svg { color: var(--amber); }
.phero__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.pstats {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin-top: 28px;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; overflow: hidden;
}
.pstat {
  display: flex; flex-direction: column; align-items: center; padding: 16px 8px;
  background: none; border: 0; color: var(--text); font-family: inherit; cursor: default;
}
button.pstat { cursor: pointer; }
button.pstat:hover { background: rgba(255, 179, 0, .06); }
.pstat + .pstat { border-left: 1px solid rgba(255, 255, 255, .08); }
.pstat strong { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.pstat span { font-size: .8rem; color: var(--muted); }

.pbody { padding-top: 28px; padding-bottom: 72px; display: grid; gap: 22px; }
.pedit .h3 { margin-bottom: 16px; }
.field-row--2 { grid-template-columns: 1fr 1fr; }
.pedit .select { width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 1rem; background: rgba(255, 255, 255, .06); }

.ptabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid rgba(255, 255, 255, .1); scrollbar-width: none; }
.ptab {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; white-space: nowrap; cursor: pointer;
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--muted); font: 500 .95rem 'Poppins', sans-serif;
}
.ptab:hover { color: var(--text); }
.ptab.is-active { color: var(--amber); border-bottom-color: var(--amber); }
.ptab__n { font-size: .72rem; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--text); }
.ptab.is-active .ptab__n { background: var(--amber); color: #1A1206; }

.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tstub {
  position: relative; display: grid; grid-template-columns: 1fr auto; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 179, 0, .12), rgba(233, 30, 99, .08)), var(--card);
  border: 1px solid var(--line); transition: transform .2s ease;
}
.tstub:hover { transform: translateY(-3px); }
.tstub__main { padding: 16px 18px; }
.tstub__main h3 { font-size: 1.05rem; font-weight: 600; margin: 2px 0 6px; }
.tstub__code {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; padding: 16px 18px;
  border-left: 2px dashed rgba(255, 179, 0, .4);
}
.tstub__code strong { font-size: 1rem; letter-spacing: .1em; writing-mode: vertical-rl; transform: rotate(180deg); }

.pposts { display: grid; gap: 16px; max-width: 680px; }
.pposts .panel + .panel { margin-top: 0; }
.ppost__text { white-space: pre-wrap; margin-top: 6px; word-break: break-word; }
.ppost__img { margin-top: 12px; border-radius: 12px; max-height: 420px; width: 100%; object-fit: cover; }
.ppost__meta { margin-top: 10px; }

.pcols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pcols .panel + .panel { margin-top: 0; }
.pcols .h3 { margin-bottom: 14px; }
.plist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.plist a { padding: 6px 8px; border-radius: 10px; }
.plist a:hover { background: rgba(255, 179, 0, .06); }

.psettings .h3 { margin-bottom: 2px; }
.srows { display: grid; gap: 2px; margin-top: 14px; }
.srow {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; width: 100%;
  background: none; border: 0; color: var(--text); text-align: left; font-family: inherit; cursor: pointer;
}
.srow > svg { font-size: 20px; color: var(--amber); }
.srow strong { display: block; font-weight: 500; font-size: .95rem; }
.srow small { color: var(--muted); font-size: .8rem; }
.srow:hover { background: rgba(255, 179, 0, .06); }
.srow--danger, .srow--danger > svg { color: #FF8A80; }

@media (max-width: 760px) {
  .phero__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .pavatar { width: 104px; height: 104px; font-size: 2.2rem; }
  .pbio { margin-left: auto; margin-right: auto; }
  .pchips, .phero__actions { justify-content: center; }
  .pcols { grid-template-columns: 1fr; }
  .field-row--2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pstats { grid-template-columns: repeat(2, 1fr); }
  .pstat:nth-child(3) { border-left: 0; }
  .pstat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .08); }
  .tickets { grid-template-columns: 1fr; }
}

/* Usernames */
.uinput, .field .uinput {
  display: flex; align-items: center; margin: 0; font-size: 1rem; border-radius: 12px; overflow: hidden;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
.uinput:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 179, 0, .2); }
.field .uinput > span { display: inline; padding: 0 2px 0 14px; color: var(--amber); font-weight: 600; font-size: 1rem; margin: 0; }
.field .uinput input { border: 0; background: none; box-shadow: none; padding-left: 2px; }
.field .uinput input:focus { box-shadow: none; }
.uhint { display: block; min-height: 1.3em; margin-top: 6px; font-size: .8rem; color: var(--muted); }
.uhint--ok { color: #7EE2A8; }
.uhint--bad { color: #FF8A80; }
.uname-page .auth__card h1 { margin-top: 6px; }
.uname-emoji { font-size: 2.6rem; text-align: center; }
