.hub-events-section {
  margin: 24px 0 20px;
}

.hub-event-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.hub-event-section-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.hub-events-head h3,
.hub-tickets-head h1 {
  margin: 0;
  color: #191a20;
  font-size: clamp(22px, 5.9vw, 25px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hub-events-head p,
.hub-tickets-head p {
  margin: 0;
  color: #6e737b;
  font-size: 12px;
  line-height: 1.35;
}

.hub-event-head-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hub-event-head-action {
  flex: 0 0 auto;
  width: auto;
  height: 36px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(23, 28, 34, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #555e68;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(24, 31, 38, 0.025);
}

.hub-event-head-action-primary,
.hub-event-head-action.active {
  border-color: rgba(242, 101, 34, 0.18);
  background: #fff1e8;
  color: #d9571e;
}

.hub-event-head-action:focus-visible {
  outline: 2px solid rgba(242, 101, 34, 0.42);
  outline-offset: 2px;
}

.hub-events-list,
.hub-tickets-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.hub-ticket-event-card,
.hub-ticket-card {
  overflow: hidden;
  border: 1px solid rgba(25, 30, 38, 0.08);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 31, 38, 0.07);
}

.hub-ticket-event-card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hub-ticket-event-open {
  width: 100%;
  display: grid;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1e232a;
  font: inherit;
  text-align: left;
}

.hub-ticket-event-media,
.hub-ticket-cover {
  position: relative;
  display: block;
  width: 100%;
  min-height: 152px;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #252b31;
}

.hub-ticket-event-media {
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(24, 31, 38, 0.09);
}

.hub-ticket-event-media img,
.hub-ticket-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-ticket-event-fallback {
  width: 100%;
  min-height: 120px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2f353d, #15191e);
  color: rgba(255, 255, 255, 0.3);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hub-ticket-event-fallback.hidden {
  display: none;
}

.hub-ticket-event-date {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 48px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 13px;
  background: rgba(20, 23, 28, 0.78);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hub-ticket-event-date strong,
.hub-ticket-event-date span {
  display: block;
}

.hub-ticket-event-date strong {
  font-size: 20px;
  line-height: 1;
}

.hub-ticket-event-date span {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.hub-ticket-event-body,
.hub-ticket-body {
  display: grid;
  gap: 6px;
  padding: 10px 12px 12px;
}

.hub-ticket-event-body {
  border: 1px solid rgba(25, 30, 38, 0.07);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 31, 38, 0.065);
}

.hub-ticket-event-meta {
  color: #69717c;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.hub-ticket-event-body h3,
.hub-ticket-title {
  margin: 0;
  color: #1f2329;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.hub-event-meta,
.hub-ticket-meta {
  margin: 4px 0 0;
  color: #686e78;
  font-size: 11px;
  line-height: 1.4;
}

.hub-ticket-event-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 42%);
  align-items: stretch;
  gap: 7px;
  margin-top: 8px;
}

.hub-ticket-event-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 40px;
  padding: 3px 8px;
  border-radius: 11px;
  background: #f7f6f4;
}

.hub-ticket-event-prices > span {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
}

.hub-ticket-event-prices > span + span {
  padding-left: 12px;
  border-left: 1px solid rgba(28, 29, 34, 0.08);
}

.hub-ticket-event-prices small,
.hub-ticket-event-prices strong {
  display: block;
}

.hub-ticket-event-prices small {
  color: #858b94;
  font-size: 9px;
  line-height: 1.25;
}

.hub-ticket-event-prices strong {
  margin-top: 2px;
  color: #202126;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.hub-ticket-event-prices strong.accent {
  color: #d9571e;
}

.hub-ticket-event-cta,
.hub-ticket-open {
  height: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(242, 101, 34, 0.18);
  border-radius: 15px;
  background: #fff0e7;
  color: #d9571e;
  font: inherit;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 800;
  text-align: center;
}

.hub-ticket-open {
  position: relative;
  width: 100%;
}

.hub-ticket-event-cta {
  height: auto;
  min-height: 40px;
  padding-inline: 9px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.2;
}

.hub-ticket-open::before {
  content: "";
  position: absolute;
  inset: -2px 0;
}

.hub-ticket-event-cta.disabled {
  background: #e5e6e8;
  color: #777e87;
}

.hub-ticket-event-remaining {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: #d9571e;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 750;
}

.hub-ticket-event-remaining::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #f26522;
  content: "";
}

.hub-events-state {
  display: none;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid #ebe8e5;
  border-radius: 16px;
  background: #fffaf6;
  color: #696d76;
  font-size: 13px;
  line-height: 1.4;
}

.hub-events-state.show {
  display: block;
}

.hub-events-state.error {
  border-color: #f3d5ca;
  color: #9c4529;
}

.hub-tickets-view {
  min-height: calc(100dvh - 150px);
  padding: 6px 0 calc(96px + env(safe-area-inset-bottom));
}

.hub-tickets-head {
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  margin: 0 0 14px;
}

.hub-tickets-head > div {
  min-width: 0;
}

.hub-tickets-head > button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: #f3f1ee;
  color: #24252a;
}

.hub-tickets-head > button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-ticket-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  height: 46px;
  margin: 0 0 10px;
  padding: 3px;
  box-sizing: border-box;
  border: 1px solid rgba(28, 29, 34, 0.045);
  border-radius: 15px;
  background: #efeff0;
}

.hub-ticket-tabs button {
  width: 100%;
  height: 38px;
  min-height: 38px;
  padding: 0 10px;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #747985;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.hub-ticket-tabs button.active {
  background: #fff3eb;
  color: #d9571e;
  box-shadow: 0 1px 4px rgba(93, 64, 45, 0.05);
}

.hub-ticket-card-status {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf8ee;
  color: #2d8c4a;
  font-size: 12px;
  font-weight: 750;
}

.hub-ticket-card .hub-ticket-open {
  width: 100%;
  margin-top: 10px;
}

.hub-ticket-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.hub-ticket-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding: 5px 9px;
  border-radius: 14px;
  background: #f7f6f4;
}

.hub-ticket-price-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hub-ticket-price-row span + span {
  padding-left: 10px;
  border-left: 1px solid rgba(28, 29, 34, 0.08);
}

.hub-ticket-price-row small {
  color: #858993;
  font-size: 10px;
}

.hub-ticket-price-row strong {
  color: #202126;
  font-size: 15px;
}

.hub-ticket-price-row span:first-child strong {
  color: #d9571e;
}

.hub-ticket-guest {
  margin-top: 6px;
  color: #858993;
  font-size: 11px;
  text-align: center;
}

body.hub-tickets-open #usernameLabel,
body.hub-tickets-open #visitCountLabel,
body.hub-tickets-open #statusPill,
body.hub-tickets-open #notice,
body.hub-tickets-open #communityAccessBlockedCard {
  display: none !important;
}

body.hub-tickets-open .wrap {
  scroll-margin-top: 0;
}

@media (max-width: 350px) {
  .hub-events-head h3 {
    font-size: 21px;
  }

  .hub-events-head p {
    font-size: 12px;
  }

  .hub-event-section-head {
    gap: 9px;
  }

  .hub-event-head-actions {
    width: 100%;
    gap: 6px;
  }

  .hub-event-head-action {
    flex: 1 1 0;
    height: 36px;
    min-height: 36px;
    padding-inline: 9px;
    font-size: 10px;
  }

  .hub-ticket-event-media {
    min-height: 130px;
  }

  .hub-ticket-price-row {
    grid-template-columns: 1fr 1fr;
  }

  .hub-ticket-event-offer {
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 6px;
  }

  .hub-ticket-event-prices {
    padding-inline: 9px;
  }

  .hub-ticket-event-prices > span + span {
    padding-left: 8px;
  }

  .hub-ticket-event-cta {
    padding-inline: 7px;
    font-size: 10px;
  }
}

.hub-ticket-overlay {
  position: fixed;
  z-index: 2200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(20, 18, 18, 0.68);
  backdrop-filter: blur(8px);
}

.hub-ticket-overlay.hidden {
  display: none;
}

.hub-ticket-pass {
  position: relative;
  width: min(100%, 410px);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 12px 16px 18px;
  border-radius: 27px;
  background: #fff;
  color: #1c1d21;
  text-align: center;
}

.hub-ticket-pass-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  margin-bottom: 12px;
  border-radius: 18px;
  object-fit: cover;
}

.hub-ticket-pass-cover.hidden {
  display: none;
}

.hub-ticket-close {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #35363b;
  font-size: 25px;
}

.hub-ticket-status {
  display: inline-flex;
  gap: 6px;
  margin: 2px 42px 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e7f8ec;
  color: #278944;
  font-size: 13px;
  font-weight: 800;
}

.hub-ticket-pass h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
}

.hub-ticket-pass-meta {
  margin-top: 7px;
  color: #747985;
  font-size: 13px;
}

.hub-ticket-qr-frame {
  display: grid;
  place-items: center;
  width: min(78vw, 280px);
  aspect-ratio: 1;
  margin: 18px auto 10px;
  padding: 14px;
  border: 1px solid #ededee;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(36, 31, 28, 0.08);
}

.hub-ticket-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hub-ticket-qr-loading,
.hub-ticket-pass-hint {
  color: #747985;
  font-size: 13px;
}

.hub-ticket-cancel {
  min-height: 44px;
  margin-top: 8px;
  padding: 0 18px;
  border: 1px solid #dfdfe2;
  border-radius: 14px;
  background: #fff;
  color: #8d3d28;
  font: inherit;
  font-weight: 750;
}

@media (max-width: 340px) {
  .hub-ticket-pass { padding-inline: 12px; }
  .hub-ticket-close { right: 20px; }
}
.hub-venue-news {
  margin: 12px 0 18px;
}

.hub-venue-news.hidden {
  display: none;
}

.hub-venue-news-title {
  margin: 0 0 10px;
  color: #ec6427;
  font-size: 16px;
  font-weight: 800;
}

.hub-venue-news-list {
  display: grid;
  gap: 12px;
}

.hub-venue-news-card {
  overflow: hidden;
  border: 1px solid rgba(236, 100, 39, 0.16);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(40, 32, 28, 0.06);
}

.hub-venue-news-image {
  display: block;
  width: 100%;
  max-height: 230px;
  object-fit: cover;
}

.hub-venue-news-content {
  padding: 14px 16px 16px;
}

.hub-venue-news-content h3 {
  margin: 0;
  color: #202126;
  font-size: 18px;
  line-height: 1.25;
}

.hub-venue-news-content p {
  margin: 8px 0 0;
  color: #686d76;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

/* Empty events should remain useful without taking over the home feed. */
.hub-events-section.is-empty {
  margin: 18px 0 14px;
  padding: 14px;
  border: 1px solid #ebe8e5;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.hub-events-section.is-empty .hub-event-section-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.hub-events-section.is-empty .hub-events-head h3 {
  font-size: 18px;
}

.hub-events-section.is-empty .hub-events-head p,
.hub-events-section.is-empty .hub-event-head-action-primary {
  display: none;
}

.hub-events-section.is-empty .hub-event-head-action {
  min-height: 40px;
  height: 40px;
}

.hub-events-section.is-empty .hub-events-state {
  margin-top: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
}

.hub-events-section.is-empty .hub-events-list {
  display: none;
}

/* Event card polish (2026-11-13): venue label in sentence case, ticket action on one line. */
.hub-ticket-event-meta { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; }
.hub-ticket-event-cta { white-space: nowrap; font-size: 13px; font-weight: 700; padding-inline: 12px; }

.hub-ticket-profile-notice {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(242, 101, 34, 0.45);
  background: rgba(242, 101, 34, 0.12);
  font-size: 14px;
  line-height: 1.4;
}
