@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&display=swap');

/* CSS Custom Properties for Theme Toggle */
:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --text: #111322;
  --muted: #6b7280;
  --border: #e2e6f0;
  --accent: #5c6ac4;
  --accent-soft: #e6e9ff;

  /* Responsive golden-ratio typography.
     UI scale uses quarter-powers of φ so every four steps equal one full φ jump. */
  --phi: 1.6180339887;
  --leading-phi: 1.6180339887;
  --font-caption: 0.75rem;
  --font-small: 0.875rem;
  --font-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --font-h6: var(--font-body);
  --font-h5: clamp(1.128rem, 1.07rem + 0.25vw, 1.272rem);
  --font-h4: clamp(1.272rem, 1.15rem + 0.55vw, 1.618rem);
  --font-h3: clamp(1.434rem, 1.2rem + 1vw, 2.058rem);
  --font-h2: clamp(1.618rem, 1.25rem + 1.6vw, 2.618rem);
  --font-h1: clamp(1.824rem, 1.3rem + 2.4vw, 4.236rem);
}

/* Semantic headings & body, derived from φ while capped for mobile and desktop readability. */
html {
  font-size: 100%;
}

body {
  font-size: var(--font-body);
  line-height: var(--leading-phi);
  background-color: var(--bg);
  color: var(--text);
}

h1,
.h1 {
  font-size: var(--font-h1);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2,
.h2 {
  font-size: var(--font-h2);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h3,
.h3 {
  font-size: var(--font-h3);
  line-height: 1.18;
  font-weight: 700;
}

h4,
.h4 {
  font-size: var(--font-h4);
  line-height: 1.25;
  font-weight: 600;
}

h5,
.h5 {
  font-size: var(--font-h5);
  line-height: 1.35;
  font-weight: 600;
}

h6,
.h6 {
  font-size: var(--font-h6);
  line-height: 1.4;
  font-weight: 600;
}

p,
li,
dd,
dt,
blockquote {
  font-size: var(--font-body);
}

small,
.tiny {
  font-size: var(--font-small);
}

.caption,
.text-caption {
  font-size: var(--font-caption);
}

.article-content h1 {
  font-size: var(--font-h2);
}

.article-content h2 {
  font-size: var(--font-h3);
}

.article-content h3 {
  font-size: var(--font-h4);
}

.article-content h4 {
  font-size: var(--font-h5);
}

.article-content h5 {
  font-size: var(--font-small);
}

.article-content h6 {
  font-size: var(--font-caption);
}

body[data-theme='dark'] {
  --bg: #080a14;
  --surface: #101226;
  --text: #f9fbff;
  --muted: #9aa0bd;
  --border: #1f2338;
  --accent: #8b9bff;
  --accent-soft: rgba(139, 155, 255, 0.15);
}

/* Header layout */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: visible;
}

html.dark .site-header,
body[data-theme='dark'] .site-header {
  background: #0b1221;
  border-color: #1f2937;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.site-shell {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  overflow: visible;
}

@media (min-width: 640px) {
  .site-shell {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .site-shell {
    padding: 0 2rem;
  }
}

.nav-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 4rem;
  height: auto;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: min(15rem, 48vw);
  object-fit: contain;
}

.brand-logo--dark,
.brand-logo-icon--dark,
.brand-logo-icon {
  display: none;
}

body[data-theme='dark'] .brand-logo--light,
html.dark .brand-logo--light {
  display: none;
}

body[data-theme='dark'] .brand-logo--dark,
html.dark .brand-logo--dark {
  display: block;
}

.brand-mark {
  font-size: var(--font-h4);
}

.brand-text {
  display: block;
  min-width: 0;
  line-height: 1.1;
}

.brand-title {
  margin: 0;
  font-weight: 700;
  font-size: var(--font-body);
  white-space: nowrap;
  color: #111827;
}

body[data-theme='dark'] .brand-title {
  color: #f9fafb;
}

.brand-subtitle {
  margin: 0.15rem 0 0;
  font-size: var(--font-caption);
  color: #6b7280;
}

@media (max-width: 767px) {
  .brand-logo--light,
  .brand-logo--dark {
    display: none !important;
  }

  .brand-logo-icon {
    height: 2.25rem;
    width: auto;
    max-width: 2.5rem;
  }

  .brand-logo-icon--light {
    display: block;
  }

  .brand-logo-icon--dark {
    display: none;
  }

  body[data-theme='dark'] .brand-logo-icon--light,
  html.dark .brand-logo-icon--light {
    display: none;
  }

  body[data-theme='dark'] .brand-logo-icon--dark,
  html.dark .brand-logo-icon--dark {
    display: block;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .brand-logo {
    height: 2.2rem;
    max-width: min(12.5rem, 56vw);
  }
}

@media (max-width: 479px) {
  .brand {
    gap: 0;
  }

  .brand-logo-icon {
    height: 2rem;
    max-width: 2.25rem;
  }

  .brand-mark {
    display: none;
  }
}

body[data-theme='dark'] .brand-subtitle {
  color: #9ca3af;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

@media (max-width: 1023px) {
  .nav-desktop.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid #e5e7eb;
    background: white;
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.2);
    z-index: 45;
  }

  body[data-theme='dark'] .nav-desktop.is-open {
    background: #0b1221;
    border-color: #374151;
    box-shadow: 0 16px 35px -12px rgba(0, 0, 0, 0.5);
  }

  .nav-desktop.is-open .nav-link {
    width: 100%;
    justify-content: space-between;
    border-radius: 0;
    padding: 0.75rem 1rem;
  }

  .nav-desktop.is-open .nav-article-hover {
    width: 100%;
  }

  .nav-desktop.is-open .nav-dropdown-menu {
    display: block;
    position: static;
    margin-top: 0;
    min-width: 0 !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 0.75rem;
    background: transparent;
  }

  body[data-theme='dark'] .nav-desktop.is-open .nav-dropdown-menu {
    background: transparent;
  }

  .nav-desktop.is-open .nav-dropdown-menu::before {
    display: none;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.75rem;
  font-weight: 500;
  color: #111827;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link-icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  opacity: 0.88;
}

/* Desktop: LinkedIn-style — search beside logo, denser icon nav */
@media (min-width: 1024px) {
  .nav-desktop {
    flex: 1 1 auto;
    justify-content: flex-end;
    align-items: stretch;
    gap: 0.2rem;
    min-width: 0;
    margin-inline: 0.25rem 0.15rem;
  }

  .brand {
    flex-shrink: 0;
  }

  .nav-desktop > .nav-link,
  .nav-desktop > .nav-article-hover,
  .nav-desktop > .nav-dropdown {
    flex: 1 1 0;
    min-width: 5.5rem;
    max-width: none;
  }

  /* Keep dropdown/article wrappers filling their equal column */
  .nav-desktop > .nav-dropdown {
    display: flex;
  }

  .nav-desktop > .nav-dropdown > .nav-link {
    flex: 1;
    width: 100%;
  }

  .nav-desktop > .nav-article-hover {
    display: flex;
  }

  .nav-desktop .nav-article-hover > .nav-link {
    flex: 1;
    width: 100%;
  }

  .nav-desktop .nav-link {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.3rem 0.2rem;
    text-align: center;
    min-width: 0;
    width: 100%;
  }

  .nav-desktop .nav-link span {
    font-size: 0.625rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
  }

  .nav-desktop .nav-link-icon {
    width: 1.35rem;
    height: 1.35rem;
    opacity: 1;
  }

  .nav-desktop .nav-article-hover {
    align-self: auto;
  }

  .nav-row {
    min-height: 4.25rem;
  }

  .header-search {
    flex: 0 1 12.5rem;
    max-width: 14rem;
    margin-left: 0.6rem;
    margin-right: 0.25rem;
  }
}

@media (min-width: 1280px) {
  .nav-desktop {
    gap: 0.4rem;
    margin-inline: 0.4rem 0.25rem;
  }

  .nav-desktop > .nav-link,
  .nav-desktop > .nav-article-hover,
  .nav-desktop > .nav-dropdown {
    flex: 1 1 0;
    min-width: 6rem;
    max-width: none;
  }

  .nav-desktop .nav-link {
    padding: 0.35rem 0.35rem;
  }

  .nav-desktop .nav-link span {
    font-size: 0.6875rem;
    white-space: nowrap;
  }

  .header-search {
    flex-basis: 15rem;
    max-width: 17rem;
  }
}

/* Header search (mobile fills gap; desktop sits beside logo) */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  margin: 0 0.5rem;
}

.header-search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
  display: inline-flex;
}

.header-search-input {
  width: 100%;
  min-width: 0;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #111827;
  padding: 0 0.85rem 0 2.15rem;
  font-size: 0.8125rem;
  line-height: 1.2;
  outline: none;
}

.header-search-input::placeholder {
  color: #9ca3af;
}

.header-search-input:focus {
  border-color: #a78bfa;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

body[data-theme='dark'] .header-search-icon {
  color: #9ca3af;
}

body[data-theme='dark'] .header-search-input {
  border-color: #374151;
  background: #1f2937;
  color: #f9fafb;
}

body[data-theme='dark'] .header-search-input::placeholder {
  color: #6b7280;
}

body[data-theme='dark'] .header-search-input:focus {
  border-color: #8b5cf6;
  background: #111827;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

@media (max-width: 379px) {
  .header-search {
    margin: 0 0.25rem;
  }

  .header-search-input {
    height: 2rem;
    font-size: 0.75rem;
    padding-left: 1.85rem;
  }
}

body[data-theme='dark'] .nav-link {
  color: #f9fafb;
}

.nav-link:hover,
.nav-link:focus-visible {
  background-color: #f3f4f6;
}

.nav-link.is-active {
  background-color: #f3e8ff;
  color: #6d28d9;
}

.nav-link.is-active .nav-link-icon {
  opacity: 1;
}

body[data-theme='dark'] .nav-link.is-active {
  background-color: rgba(124, 58, 237, 0.22);
  color: #ddd6fe;
}

.site-mobile-drawer-link.is-active {
  background-color: #f3e8ff;
  color: #6d28d9;
}

body[data-theme='dark'] .site-mobile-drawer-link.is-active {
  background-color: rgba(124, 58, 237, 0.22);
  color: #ddd6fe;
}

body[data-theme='dark'] .nav-link:hover,
body[data-theme='dark'] .nav-link:focus-visible {
  background-color: #1f2937;
}

/* Gig list / homepage event cards */

/* Desktop: Help appears in dropdown only when hovering Articles (see .nav-dropdown:hover rules) */
.nav-article-hover {
  align-self: center;
}

.mobile-link-articles-sub {
  padding-top: 0.25rem;
  padding-bottom: 0.35rem;
  padding-left: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #6b7280;
}

body[data-theme='dark'] .mobile-link-articles-sub {
  color: #9ca3af;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.2);
  min-width: 12rem;
  padding: 0.5rem;
  z-index: 40;
}

/* Create invisible hover bridge between button and menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: transparent;
}

html.dark .nav-dropdown-menu,
body[data-theme='dark'] .nav-dropdown-menu {
  background: #111827;
  border-color: #374151;
  box-shadow: 0 16px 35px -12px rgba(0, 0, 0, 0.5);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.9rem;
  margin: 0.125rem 0.375rem;
  border-radius: 0.65rem;
  color: #374151;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body[data-theme='dark'] .nav-dropdown-menu a {
  color: #d1d5db;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background-color: #f3f4f6;
  color: #111827;
}

body[data-theme='dark'] .nav-dropdown-menu a:hover,
body[data-theme='dark'] .nav-dropdown-menu a:focus-visible {
  background-color: #1f2937;
  color: #f9fafb;
}

.nav-sub-link {
  display: block;
  padding: 0.65rem 1rem;
  color: #374151;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body[data-theme='dark'] .nav-sub-link {
  color: #d1d5db;
}

.nav-sub-link:hover,
.nav-sub-link:focus-visible {
  background-color: #f3f4f6;
  color: #111827;
}

body[data-theme='dark'] .nav-sub-link:hover,
body[data-theme='dark'] .nav-sub-link:focus-visible {
  background-color: #1f2937;
  color: #f9fafb;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  display: block;
}

/* User account dropdown (LinkedIn-style hierarchy) */
.user-dropdown-menu {
  min-width: 17.5rem;
  max-width: 20rem;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 0.5rem;
  box-sizing: border-box;
}

.user-dropdown-header {
  padding: 0.875rem 1rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

html.dark .user-dropdown-header,
body[data-theme='dark'] .user-dropdown-header {
  border-bottom-color: #374151;
}

.user-dropdown-name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
}

html.dark .user-dropdown-name,
body[data-theme='dark'] .user-dropdown-name {
  color: #f9fafb;
}

.user-dropdown-role {
  margin: 0.125rem 0 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  color: #6b7280;
}

body[data-theme='dark'] .user-dropdown-role {
  color: #9ca3af;
}

.user-dropdown-email {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  color: #9ca3af;
  word-break: break-word;
  overflow-wrap: anywhere;
}

body[data-theme='dark'] .user-dropdown-email {
  color: #6b7280;
}

.user-dropdown-plan {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6d28d9;
}

body[data-theme='dark'] .user-dropdown-plan {
  color: #c4b5fd;
}

.user-dropdown-cta-wrap {
  padding: 0.625rem 1rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

body[data-theme='dark'] .user-dropdown-cta-wrap {
  border-bottom-color: #374151;
}

.user-dropdown-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4rem 1rem;
  border: 1.5px solid #7c3aed;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  color: #6d28d9;
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.user-dropdown-menu a.user-dropdown-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  border-radius: 9999px;
  white-space: nowrap;
}

.user-dropdown-cta .user-dropdown-item-icon {
  flex-shrink: 0;
  display: block;
  width: 1rem;
  height: 1rem;
}

.user-dropdown-cta:hover,
.user-dropdown-cta:focus-visible {
  background-color: #f5f3ff;
  color: #5b21b6;
}

body[data-theme='dark'] .user-dropdown-cta {
  border-color: #a78bfa;
  color: #ddd6fe;
}

body[data-theme='dark'] .user-dropdown-cta:hover,
body[data-theme='dark'] .user-dropdown-cta:focus-visible {
  background-color: #2e1065;
  color: #ede9fe;
}

.user-dropdown-section {
  padding: 0.375rem 0 0.25rem;
}

.user-dropdown-section + .user-dropdown-section {
  border-top: 1px solid #e5e7eb;
}

body[data-theme='dark'] .user-dropdown-section + .user-dropdown-section {
  border-top-color: #374151;
}

.user-dropdown-section-label {
  margin: 0;
  padding: 0.5rem 1rem 0.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111827;
}

html.dark .user-dropdown-section-label,
body[data-theme='dark'] .user-dropdown-section-label {
  color: #f3f4f6;
}

.user-dropdown-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  margin: 0;
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Beat .nav-dropdown-menu a { display: block } and keep icon + label on one row */
.user-dropdown-menu a.user-dropdown-item,
.user-dropdown-menu button.user-dropdown-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0.45rem 1rem;
  border-radius: 0;
  white-space: nowrap;
}

.user-dropdown-item-icon {
  flex-shrink: 0;
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  opacity: 0.85;
}

.user-dropdown-menu .user-dropdown-item > span {
  flex: 0 1 auto;
  min-width: 0;
}

html.dark .user-dropdown-item,
body[data-theme='dark'] .user-dropdown-item {
  color: #d1d5db;
}

.user-dropdown-item:hover,
.user-dropdown-item:focus-visible {
  background-color: #f3f4f6;
  color: #111827;
}

html.dark .user-dropdown-item:hover,
html.dark .user-dropdown-item:focus-visible,
body[data-theme='dark'] .user-dropdown-item:hover,
body[data-theme='dark'] .user-dropdown-item:focus-visible {
  background-color: #1f2937;
  color: #f9fafb;
}

.user-dropdown-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
}

body[data-theme='dark'] .user-dropdown-badge {
  color: #9ca3af;
}

.user-dropdown-footer {
  margin-top: 0.25rem;
  padding: 0.25rem 0 0.375rem;
  border-top: 1px solid #e5e7eb;
}

body[data-theme='dark'] .user-dropdown-footer {
  border-top-color: #374151;
}

.user-dropdown-menu a.user-dropdown-item.user-dropdown-item--signin {
  margin: 0.375rem 0.75rem 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: #9333ea;
  color: #fff;
  font-weight: 600;
}

.user-dropdown-menu a.user-dropdown-item.user-dropdown-item--signin:hover,
.user-dropdown-menu a.user-dropdown-item.user-dropdown-item--signin:focus-visible {
  background: #7e22ce;
  color: #fff;
}

.user-dropdown-item--signin .user-dropdown-item-icon {
  opacity: 1;
}

html.dark .user-dropdown-menu a.user-dropdown-item.user-dropdown-item--signin,
body[data-theme='dark'] .user-dropdown-menu a.user-dropdown-item.user-dropdown-item--signin {
  margin: 0.375rem 0.75rem 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(147, 51, 234, 0.22);
  color: #ede9fe;
  font-weight: 600;
}

html.dark .user-dropdown-menu a.user-dropdown-item.user-dropdown-item--signin:hover,
html.dark .user-dropdown-menu a.user-dropdown-item.user-dropdown-item--signin:focus-visible,
body[data-theme='dark'] .user-dropdown-menu a.user-dropdown-item.user-dropdown-item--signin:hover,
body[data-theme='dark'] .user-dropdown-menu a.user-dropdown-item.user-dropdown-item--signin:focus-visible {
  background: rgba(147, 51, 234, 0.35);
  color: #fff;
}

.user-dropdown-item--signout {
  color: #dc2626;
}

.user-dropdown-item--signout:hover,
.user-dropdown-item--signout:focus-visible {
  background-color: #fef2f2;
  color: #b91c1c;
}

body[data-theme='dark'] .user-dropdown-item--signout {
  color: #f87171;
}

body[data-theme='dark'] .user-dropdown-item--signout:hover,
body[data-theme='dark'] .user-dropdown-item--signout:focus-visible {
  background-color: rgba(127, 29, 29, 0.35);
  color: #fecaca;
}

.user-dropdown-menu .user-dropdown-item {
  margin: 0;
}

.user-dropdown-menu.user-dropdown-menu--portal {
  display: block !important;
  border-radius: 0.5rem;
  box-shadow: 0 16px 35px -12px rgba(0, 0, 0, 0.35);
}

html.dark .user-dropdown-menu.user-dropdown-menu--portal,
body[data-theme='dark'] .user-dropdown-menu.user-dropdown-menu--portal {
  box-shadow: 0 16px 35px -12px rgba(0, 0, 0, 0.55);
}

/* Account menus: never use nav default left:0 anchoring */
.nav-dropdown-user-desktop .user-dropdown-menu--desktop,
.nav-dropdown-user-mobile .user-dropdown-menu--mobile {
  left: auto;
  right: 0;
}

@media (max-width: 1023px) {
  .nav-dropdown-user-mobile {
    position: relative;
  }

  .nav-dropdown-user-mobile.is-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0, 0, 0, 0.12);
    pointer-events: none;
  }

  .nav-dropdown-user-mobile .user-dropdown-menu--mobile {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    left: auto;
    width: min(16.25rem, calc(100vw - 1.5rem));
    min-width: 0;
    max-width: min(16.25rem, calc(100vw - 1.5rem));
    margin-top: 0;
    max-height: calc(100dvh - 5rem - env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 60;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.22);
  }

  .user-dropdown-menu.user-dropdown-menu--portal {
    min-width: 0;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.22);
  }

  html.dark .nav-dropdown-user-mobile .user-dropdown-menu--mobile,
  body[data-theme='dark'] .nav-dropdown-user-mobile .user-dropdown-menu--mobile,
  html.dark .user-dropdown-menu.user-dropdown-menu--portal,
  body[data-theme='dark'] .user-dropdown-menu.user-dropdown-menu--portal {
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4);
  }

  .user-dropdown-menu--mobile .user-dropdown-item span {
    min-width: 0;
    flex: 1;
  }

  .user-dropdown-menu--mobile .user-dropdown-cta {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.8125rem;
  }
}

@media (min-width: 1024px) {
  .nav-dropdown-user-desktop.is-open .user-dropdown-menu--desktop {
    position: fixed;
    top: calc(4rem + 0.35rem);
    right: max(1rem, env(safe-area-inset-right, 0px));
    left: auto;
    width: min(20rem, calc(100vw - 2rem));
    min-width: 0;
    max-width: min(20rem, calc(100vw - 2rem));
    margin-top: 0;
    max-height: calc(100dvh - 5rem);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 60;
    box-sizing: border-box;
    box-shadow: 0 16px 35px -12px rgba(0, 0, 0, 0.35);
  }

  html.dark .nav-dropdown-user-desktop.is-open .user-dropdown-menu--desktop,
  body[data-theme='dark'] .nav-dropdown-user-desktop.is-open .user-dropdown-menu--desktop {
    box-shadow: 0 16px 35px -12px rgba(0, 0, 0, 0.55);
  }

  .user-dropdown-menu--desktop .user-dropdown-item span {
    min-width: 0;
    flex: 1;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 0;
  overflow: visible;
}

@media (max-width: 1023px) {
  .site-shell {
    overflow-x: clip;
  }

  .nav-row {
    gap: 0.5rem;
  }

  .brand {
    min-width: 0;
    flex: 0 0 auto;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }

  .brand-subtitle {
    display: none;
  }

  .header-search {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    margin-left: 0.35rem;
    margin-right: 0.35rem;
  }
}

@media (max-width: 399px) {
  .nav-row {
    gap: 0.35rem;
  }

  .site-shell {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .brand-logo-icon {
    height: 1.85rem;
    max-width: 2rem;
  }

  .header-search {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
  }

  .header-search-input {
    height: 2rem;
    font-size: 0.75rem;
    padding-left: 1.85rem;
    padding-right: 0.65rem;
  }

  .header-search-icon {
    left: 0.55rem;
  }

  .header-search-icon svg {
    width: 14px;
    height: 14px;
  }
}

.icon-btn {
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  background: white;
  color: #111827;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

html.dark .icon-btn,
body[data-theme='dark'] .icon-btn {
  background: #111827;
  border-color: #374151;
  color: #f9fafb;
}

.icon-btn:hover {
  background: #f3f4f6;
}

body[data-theme='dark'] .icon-btn:hover {
  background: #1f2937;
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 1;
}

.theme-icon svg {
  display: block;
}

.menu-toggle,
.user-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

@media (min-width: 1024px) {
  .menu-toggle,
  .user-menu-toggle {
    display: none;
  }
}

/* Mobile navigation — right slide-in drawer */
.site-mobile-drawer.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100; /* above Leaflet panes (typically 200–700) */
  pointer-events: none;
}

@media (min-width: 1024px) {
  .site-mobile-drawer.mobile-menu {
    display: none !important;
  }
}

.site-mobile-drawer.mobile-menu.is-open {
  display: block;
  pointer-events: auto;
}

.site-mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
}

.site-mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 22rem);
  max-width: 100%;
  background: #ffffff;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s ease-out;
}

html.dark .site-mobile-drawer-panel,
body[data-theme='dark'] .site-mobile-drawer-panel {
  background: #0b1221;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.45);
}

.site-mobile-drawer.mobile-menu.is-open .site-mobile-drawer-panel {
  transform: translateX(0);
}

.site-mobile-drawer-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

body[data-theme='dark'] .site-mobile-drawer-header {
  border-color: #374151;
}

.site-mobile-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-mobile-drawer-close:hover,
.site-mobile-drawer-close:focus-visible {
  background: #f3f4f6;
  color: #111827;
}

body[data-theme='dark'] .site-mobile-drawer-close {
  color: #d1d5db;
}

body[data-theme='dark'] .site-mobile-drawer-close:hover,
body[data-theme='dark'] .site-mobile-drawer-close:focus-visible {
  background: #1f2937;
  color: #f9fafb;
}

.site-mobile-drawer-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

body[data-theme='dark'] .site-mobile-drawer-title {
  color: #f9fafb;
}

.site-mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.site-mobile-drawer-card {
  margin: 0 1rem 1rem;
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid #e5e7eb;
}

.site-mobile-drawer-card--profile {
  position: relative;
  padding-top: 1.15rem;
  padding-right: 2.75rem;
}

body[data-theme='dark'] .site-mobile-drawer-card {
  border-color: #374151;
  background: rgba(255, 255, 255, 0.03);
}

.site-mobile-drawer-card--guest {
  border-color: #d8b4fe;
  background: #faf5ff;
}

body[data-theme='dark'] .site-mobile-drawer-card--guest {
  border-color: #6b21a8;
  background: rgba(88, 28, 135, 0.2);
}

.site-mobile-drawer-card-label {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

body[data-theme='dark'] .site-mobile-drawer-card-label {
  color: #9ca3af;
}

.site-mobile-drawer-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.site-mobile-drawer-card-role {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #6b7280;
}

body[data-theme='dark'] .site-mobile-drawer-card-role {
  color: #9ca3af;
}

body[data-theme='dark'] .site-mobile-drawer-card-title {
  color: #f9fafb;
}

.site-mobile-drawer-user-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.site-mobile-drawer-card-meta {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #6b7280;
  word-break: break-all;
}

.site-mobile-drawer-card-meta--truncate {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.site-mobile-drawer-bell {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  color: #374151;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.site-mobile-drawer-bell:hover {
  background: #f3f4f6;
}

body[data-theme='dark'] .site-mobile-drawer-bell {
  color: #e5e7eb;
}

body[data-theme='dark'] .site-mobile-drawer-bell:hover {
  background: #374151;
}

.site-mobile-drawer-bell-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
}

.site-mobile-drawer-bell--corner {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  margin: 0;
}

.dashboard-notifications-bell--active,
.header-notifications-bell.dashboard-notifications-bell--active {
  background: #f3e8ff;
  color: #7c3aed;
  border-color: #c4b5fd;
}

body[data-theme='dark'] .dashboard-notifications-bell--active,
body[data-theme='dark'] .header-notifications-bell.dashboard-notifications-bell--active {
  background: rgba(126, 34, 206, 0.25);
  color: #ddd6fe;
  border-color: #6d28d9;
}

.header-notifications-bell.site-mobile-drawer-bell {
  width: auto;
  min-width: 2.5rem;
  height: auto;
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  background: white;
}

html.dark .header-notifications-bell.site-mobile-drawer-bell,
body[data-theme='dark'] .header-notifications-bell.site-mobile-drawer-bell {
  background: #111827;
  border-color: #374151;
}

.nav-user-avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 9999px;
  background: #9333ea;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.15s ease;
  padding: 0;
}

.nav-user-menu-toggle:hover .nav-user-avatar-btn,
.nav-user-menu-toggle:focus-visible .nav-user-avatar-btn,
.nav-user-avatar-btn:hover,
.nav-user-avatar-btn:focus-visible {
  background: #7e22ce;
}

.nav-user-avatar-btn--mobile {
  flex-shrink: 0;
}

.site-mobile-drawer-nav--primary {
  margin-bottom: 0.5rem;
}

.site-mobile-drawer-cta--outline {
  color: #6d28d9;
  background: transparent;
  border: 1px solid #7c3aed;
}

.site-mobile-drawer-cta--outline:hover,
.site-mobile-drawer-cta--outline:focus-visible {
  color: #5b21b6;
  background: #f5f3ff;
  border-color: #8b5cf6;
}

html.dark .site-mobile-drawer-cta--outline,
body[data-theme='dark'] .site-mobile-drawer-cta--outline {
  color: #f9fafb;
  background: transparent;
  border-color: #8b5cf6;
}

html.dark .site-mobile-drawer-cta--outline:hover,
html.dark .site-mobile-drawer-cta--outline:focus-visible,
body[data-theme='dark'] .site-mobile-drawer-cta--outline:hover,
body[data-theme='dark'] .site-mobile-drawer-cta--outline:focus-visible {
  background: rgba(139, 92, 246, 0.18);
}

body[data-theme='dark'] .site-mobile-drawer-card-meta {
  color: #9ca3af;
}

.site-mobile-drawer-card-hint {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: #7c3aed;
  line-height: 1.4;
}

body[data-theme='dark'] .site-mobile-drawer-card-hint {
  color: #c4b5fd;
}

.site-mobile-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: #6d28d9;
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.site-mobile-drawer-cta:hover,
.site-mobile-drawer-cta:focus-visible {
  background: #ede9fe;
  border-color: #ddd6fe;
}

body[data-theme='dark'] .site-mobile-drawer-cta {
  color: #e9d5ff;
  background: rgba(91, 33, 182, 0.35);
  border-color: #7c3aed;
}

.site-mobile-drawer-cta--strong {
  margin-top: 0;
  color: #7c3aed;
}

.site-mobile-drawer-secondary-link {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body[data-theme='dark'] .site-mobile-drawer-secondary-link {
  color: #d1d5db;
}

.site-mobile-drawer-theme {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: calc(100% - 2rem);
  margin: 0 1rem 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.site-mobile-drawer-theme:hover,
.site-mobile-drawer-theme:focus-visible {
  background: #f3f4f6;
}

body[data-theme='dark'] .site-mobile-drawer-theme {
  border-color: #374151;
  background: #111827;
  color: #f9fafb;
}

body[data-theme='dark'] .site-mobile-drawer-theme:hover,
body[data-theme='dark'] .site-mobile-drawer-theme:focus-visible {
  background: #1f2937;
}

.site-mobile-drawer-theme-label {
  flex: 1;
}

.site-mobile-drawer-theme--flush {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

body.mobile-drawer-open {
  overflow: hidden;
}

/* Mobile filter bottom sheet (artists, venues, etc.) */
.filter-bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .filter-bottom-sheet {
    display: none !important;
  }
}

.filter-bottom-sheet.is-open {
  visibility: visible;
  pointer-events: auto;
}

.filter-bottom-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.24s ease-out;
}

.filter-bottom-sheet.is-open .filter-bottom-sheet-backdrop {
  opacity: 1;
}

.filter-bottom-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  max-height: 85dvh;
  flex-direction: column;
  border-radius: 1rem 1rem 0 0;
  background: #ffffff;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.14);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

body[data-theme='dark'] .filter-bottom-sheet-panel {
  background: #111827;
  box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.45);
}

.filter-bottom-sheet.is-open .filter-bottom-sheet-panel {
  transform: translateY(0);
}

.filter-bottom-sheet-handle {
  flex-shrink: 0;
  width: 2.5rem;
  height: 0.25rem;
  margin: 0.625rem auto 0;
  border-radius: 9999px;
  background: #d1d5db;
}

body[data-theme='dark'] .filter-bottom-sheet-handle {
  background: #4b5563;
}

body.filter-sheet-open {
  overflow: hidden;
}

.site-mobile-drawer-lang {
  margin: 0 1rem 0.75rem !important;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

body[data-theme='dark'] .site-mobile-drawer-lang {
  border-color: #374151;
}

.site-mobile-drawer-lang-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
}

.site-mobile-drawer-lang-select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 0.875rem;
  color: #111827;
}

body[data-theme='dark'] .site-mobile-drawer-lang-select {
  border-color: #4b5563;
  background: #1f2937;
  color: #f9fafb;
}

.site-mobile-drawer-section-label {
  margin: 0.5rem 1rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.site-mobile-drawer-nav {
  display: flex;
  flex-direction: column;
}

.site-mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  background: none;
  border: none;
  border-top: 1px solid #f3f4f6;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease;
}

.site-mobile-drawer-link-main {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.site-mobile-drawer-link-icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  opacity: 0.88;
}

body[data-theme='dark'] .site-mobile-drawer-link {
  color: #f3f4f6;
  border-color: #1f2937;
}

.site-mobile-drawer-link:hover,
.site-mobile-drawer-link:focus-visible {
  background: #f9fafb;
}

body[data-theme='dark'] .site-mobile-drawer-link:hover,
body[data-theme='dark'] .site-mobile-drawer-link:focus-visible {
  background: #1f2937;
}

.site-mobile-drawer-link--danger {
  color: #dc2626;
  border-bottom: 1px solid #f3f4f6;
}

body[data-theme='dark'] .site-mobile-drawer-link--danger {
  color: #f87171;
}

.site-mobile-drawer-chevron {
  flex-shrink: 0;
  opacity: 0.45;
}

.site-mobile-drawer-signout {
  margin-top: 0 !important;
  padding: 0 0 0.5rem;
}

/* Legacy mobile link classes (if used elsewhere) */
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-link,
.nav-dropdown-toggle-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 0.85rem;
  font-weight: 500;
  color: #111827;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

body[data-theme='dark'] .mobile-link,
body[data-theme='dark'] .nav-dropdown-toggle-mobile {
  color: #f9fafb;
}

.mobile-link:hover,
.nav-dropdown-toggle-mobile:hover {
  background: #f3f4f6;
}

body[data-theme='dark'] .mobile-link:hover,
body[data-theme='dark'] .nav-dropdown-toggle-mobile:hover {
  background: #1f2937;
}

.nav-dropdown-menu-mobile {
  display: none;
  padding-left: 0.75rem;
  margin-top: 0.25rem;
}

.nav-dropdown-mobile.is-open .nav-dropdown-menu-mobile {
  display: block;
}

.nav-dropdown-menu-mobile a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  color: #4b5563;
  transition: background-color 0.15s ease;
}

body[data-theme='dark'] .nav-dropdown-menu-mobile a {
  color: #d1d5db;
}

.nav-dropdown-menu-mobile a:hover {
  background: #f3f4f6;
}

body[data-theme='dark'] .nav-dropdown-menu-mobile a:hover {
  background: #1f2937;
}

.dropdown-arrow {
  font-size: 0.75rem;
  line-height: 1;
}

/* Dropdown functionality - JavaScript dependent */
.dropdown-checklist {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0;
  margin-top: 0.5rem;
  max-height: 300px;
  overflow: hidden;
  z-index: 50;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  min-width: 260px;
  max-width: 360px;
  white-space: normal;
}

body[data-theme='dark'] .dropdown-checklist {
  background: #1f2937;
  border-color: #374151;
}

.dropdown-checklist.is-open {
  display: block;
  animation: slideDown 0.2s ease-out;
}

.dropdown-checklist.active {
  display: block;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-dropdown,
.form-dropdown {
  position: relative;
}

.filter-dropdown.is-open .dropdown-checklist,
.form-dropdown.is-open .dropdown-checklist {
  display: block;
  animation: slideDown 0.2s ease-out;
}

/* Dropdown trigger arrow rotation */
.dropdown-trigger .dropdown-arrow {
  transition: transform 0.2s ease;
}

.dropdown-trigger.active .dropdown-arrow {
  transform: rotate(180deg);
}

.filter-dropdown.is-open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Checked items styling - Purple theme with enhanced visuals */
.checkbox-label:has(input:checked) {
  background: linear-gradient(to right, rgb(243 232 255), rgb(250 245 255)) !important;
  border-left: 4px solid rgb(147 51 234);
  font-weight: 600;
  box-shadow: inset 0 1px 3px rgba(147, 51, 234, 0.1);
}

body[data-theme='dark'] .checkbox-label:has(input:checked) {
  background: linear-gradient(to right, rgb(88 28 135 / 0.5), rgb(88 28 135 / 0.3)) !important;
  border-left: 4px solid rgb(192 132 252);
  font-weight: 600;
  box-shadow: inset 0 1px 3px rgba(192, 132, 252, 0.2);
}

/* Custom scrollbar for dropdowns - Enhanced */
.checklist-group::-webkit-scrollbar {
  width: 10px;
}

.checklist-group::-webkit-scrollbar-track {
  background: linear-gradient(to bottom, rgb(243 244 246), rgb(249 250 251));
  border-radius: 10px;
}

body[data-theme='dark'] .checklist-group::-webkit-scrollbar-track {
  background: linear-gradient(to bottom, rgb(31 41 55), rgb(17 24 39));
  border-radius: 10px;
}

.checklist-group::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, rgb(192 132 252), rgb(168 85 247));
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.checklist-group::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, rgb(168 85 247), rgb(147 51 234));
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* List filter sidebars — compact fields (artist list sizing) */
.artist-filters-card,
.gxm-filters-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #f9fafb;
  box-sizing: border-box;
}

html.dark .artist-filters-card,
body[data-theme='dark'] .artist-filters-card,
html.dark .gxm-filters-card,
body[data-theme='dark'] .gxm-filters-card {
  background: rgba(31, 41, 55, 0.5);
  border-color: #374151;
}

.artist-filters-form,
.gxm-filters-form,
form[data-admin-filter-form],
#matches-filters-form,
#venue-filters-form,
#gig-filters-form,
#gig-requests-filters-form,
#gcn-filters-form,
#gc-filters-form,
#grc-filters-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
}

/* Same size as page intro body text (text-base / 1rem) */
.artist-filters-title,
.gxm-filters-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #4b5563;
}

html.dark .artist-filters-title,
body[data-theme='dark'] .artist-filters-title,
html.dark .gxm-filters-title,
body[data-theme='dark'] .gxm-filters-title {
  color: #9ca3af;
}

.artist-filter-field,
.gxm-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.artist-filter-label,
.gxm-filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #6b7280;
}

html.dark .artist-filter-label,
body[data-theme='dark'] .artist-filter-label,
html.dark .gxm-filter-label,
body[data-theme='dark'] .gxm-filter-label {
  color: #9ca3af;
}

.artist-filter-input,
.gxm-filter-input,
.gxm-filter-select {
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
}

.gxm-filter-select {
  appearance: none;
  cursor: pointer;
}

.gxm-filter-option-search {
  width: 100%;
  margin: 0 0 0.375rem;
  padding: 0.45rem 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  color: #111827;
  background: #fff;
  font-size: 0.8125rem;
}

.gxm-filter-option-search:focus {
  outline: none;
  border-color: #9333ea;
  box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.16);
}

html.dark .gxm-filter-option-search,
body[data-theme='dark'] .gxm-filter-option-search {
  color: #f3f4f6;
  background: #111827;
  border-color: #4b5563;
}

html.dark .artist-filter-input,
body[data-theme='dark'] .artist-filter-input,
html.dark .gxm-filter-input,
body[data-theme='dark'] .gxm-filter-input,
html.dark .gxm-filter-select,
body[data-theme='dark'] .gxm-filter-select {
  color: #f3f4f6;
  background: #111827;
  border-color: #4b5563;
}

.artist-filter-input:focus,
.gxm-filter-input:focus,
.gxm-filter-select:focus {
  outline: none;
  border-color: #9333ea;
  box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.2);
}

.artist-filter-ms {
  position: relative;
}

.artist-filter-ms-trigger {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 0.55rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  font-weight: 400;
  text-align: left;
  color: #111827;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
}

.artist-filter-ms-trigger:focus {
  outline: none;
  border-color: #9333ea;
  box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.2);
}

html.dark .artist-filter-ms-trigger,
body[data-theme='dark'] .artist-filter-ms-trigger {
  color: #f3f4f6;
  background: #111827;
  border-color: #4b5563;
}

.artist-filter-ms-trigger[aria-expanded='true'] {
  border-color: #9333ea;
  box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.2);
}

.artist-filter-ms-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-filter-ms-chevron {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  opacity: 0.65;
  transition: transform 0.15s ease;
  pointer-events: none;
}

.artist-filter-ms-trigger[aria-expanded='true'] .artist-filter-ms-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.artist-filter-ms-menu {
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  max-height: 12rem;
  overflow: hidden;
  padding: 0.35rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #fff;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.artist-filter-ms-menu .gxm-filter-option-search {
  position: static;
  flex: 0 0 auto;
  z-index: auto;
  margin: 0 0 0.35rem;
  background: #fff;
}

.artist-filter-ms-options {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.artist-filter-ms-group {
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.artist-filter-ms-group:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.artist-filter-ms-group[hidden] {
  display: none;
}

.artist-filter-ms-group-label {
  padding: 0.2rem 0.4rem 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

html.dark .artist-filter-ms-group,
body[data-theme='dark'] .artist-filter-ms-group {
  border-bottom-color: #374151;
}

html.dark .artist-filter-ms-group-label,
body[data-theme='dark'] .artist-filter-ms-group-label {
  color: #9ca3af;
}

html.dark .artist-filter-ms-menu,
body[data-theme='dark'] .artist-filter-ms-menu {
  background: #1f2937;
  border-color: #4b5563;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.55);
}

html.dark .artist-filter-ms-menu .gxm-filter-option-search,
body[data-theme='dark'] .artist-filter-ms-menu .gxm-filter-option-search {
  background: #111827;
}

.artist-filter-ms-menu[hidden] {
  display: none;
}

.artist-filter-ms-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #374151;
  cursor: pointer;
}

html.dark .artist-filter-ms-option,
body[data-theme='dark'] .artist-filter-ms-option {
  color: #e5e7eb;
}

.artist-filter-ms-option:hover {
  background: #f3f4f6;
}

html.dark .artist-filter-ms-option:hover,
body[data-theme='dark'] .artist-filter-ms-option:hover {
  background: #374151;
}

.artist-filter-ms-option input[type='checkbox'] {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #9333ea;
}

button.artist-filter-ms-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
}

.artist-filter-reset,
.gxm-filter-reset {
  margin-top: 0.35rem;
  width: 100%;
  padding: 0.45rem 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: #374151;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

html.dark .artist-filter-reset,
body[data-theme='dark'] .artist-filter-reset,
html.dark .gxm-filter-reset,
body[data-theme='dark'] .gxm-filter-reset {
  color: #d1d5db;
  background: #111827;
  border-color: #4b5563;
}

.artist-filter-reset:hover,
.gxm-filter-reset:hover {
  background: #f3f4f6;
}

html.dark .artist-filter-reset:hover,
body[data-theme='dark'] .artist-filter-reset:hover,
html.dark .gxm-filter-reset:hover,
body[data-theme='dark'] .gxm-filter-reset:hover {
  background: #374151;
}

/* Icon inside filter inputs / selects */
.gxm-filter-control {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.gxm-filter-control-icon {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  pointer-events: none;
  z-index: 1;
}

html.dark .gxm-filter-control-icon,
body[data-theme='dark'] .gxm-filter-control-icon {
  color: #6b7280;
}

.gxm-filter-control-input {
  padding-left: 2rem !important;
}

.gxm-filter-control--select .gxm-filter-control-input {
  padding-right: 2rem !important;
}

.gxm-filter-control-chevron {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  pointer-events: none;
}

.artist-filter-ms-trigger .gxm-filter-control-icon {
  position: static;
  transform: none;
  flex-shrink: 0;
}

.gxm-filters-form .gxm-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

/* Sidebar filter actions: desktop only (mobile drawer has its own footer buttons). */
.gxm-filters-form .gxm-filter-actions.gxm-filter-actions--sidebar-only {
  display: none;
}

@media (min-width: 1024px) {
  .gxm-filters-form .gxm-filter-actions.gxm-filter-actions--sidebar-only {
    display: flex;
  }
}

/* When filter panel is moved into a mobile drawer / modal, hide duplicate sidebar title. */
.gxm-filters-drawer-host .gxm-filters-sidebar-only,
.gxm-show-filters-modal .gxm-filters-title.gxm-filters-sidebar-only {
  display: none !important;
}

/* Drawer host still hides inline sidebar actions (drawer has its own footer). */
.gxm-filters-drawer-host .gxm-filter-actions.gxm-filters-sidebar-only {
  display: none !important;
}

@media (min-width: 640px) {
  .gxm-filter-actions--row-sm {
    flex-direction: row;
  }

  .gxm-filter-actions--row-sm .gxm-filter-submit,
  .gxm-filter-actions--row-sm .gxm-filter-reset {
    flex: 1;
  }
}

.gxm-filter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.45rem 0.625rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  background: #9333ea;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-decoration: none;
}

.gxm-filter-submit .gxm-filter-control-icon {
  position: static;
  transform: none;
  color: rgba(255, 255, 255, 0.9);
}

.gxm-filter-submit:hover {
  background: #7e22ce;
}

@media (min-width: 1024px) {
  /* Artist list sidebar: fields scroll; Search/Reset stay pinned at bottom */
  #artist-filters-home.artist-filters-card {
    min-height: 0;
    max-height: calc(100vh - 7rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  #artist-filters-home #artist-filters-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  #artist-filters-home .artist-filters-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 0.55rem;
    overflow: hidden;
  }

  #artist-filters-home .artist-filters-fields {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.15rem;
  }

  #artist-filters-home .gxm-filter-actions--sidebar-only {
    flex-shrink: 0;
    margin-top: 0;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
  }

  html.dark #artist-filters-home .gxm-filter-actions--sidebar-only,
  body[data-theme='dark'] #artist-filters-home .gxm-filter-actions--sidebar-only {
    border-top-color: #374151;
  }
}

#artist-filters-drawer-body .artist-filters-card {
  min-height: 0;
  max-height: none;
  padding: 0;
  border: none;
  background: transparent;
}

#artist-filters-drawer-body .artist-filters-form {
  gap: 0.75rem;
  overflow: visible;
}

#artist-filters-drawer-body .artist-filters-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: visible;
}

#artist-filters-drawer-body .artist-filter-input {
  padding: 0.625rem 0.75rem;
  font-size: 1rem;
}

#artist-filters-drawer-body .artist-filter-ms-trigger {
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
}

#artist-filters-drawer-body .artist-filter-label {
  font-size: 0.9375rem;
}

#artist-filters-drawer-body .artist-filters-title {
  font-size: 1rem;
  line-height: 1.5;
}

#artist-filters-drawer-body .artist-filter-ms-menu {
  max-height: 16rem;
}

#artist-filters-drawer-body .artist-filter-ms-options {
  max-height: none;
}

#artist-filters-drawer-body .artist-filter-ms-option {
  font-size: 0.9375rem;
}

#artist-filters-drawer-body .gxm-region-buttons,
.artist-filters-form .gxm-region-buttons {
  gap: 0.4rem;
}

.artist-filters-form .gxm-region-btn {
  font-size: 0.6875rem;
  padding: 0.3rem 0.55rem;
}

/* Artist grid - JavaScript populated */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Table styles for data tables */
table {
  width: 100%;
  border-collapse: collapse;
}

tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

body[data-theme='dark'] tbody tr {
  border-bottom-color: #374151;
}

tbody tr:hover {
  background-color: #f9fafb;
}

body[data-theme='dark'] tbody tr:hover {
  background-color: #1f2937;
}

td {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.875rem;
}

/* Utility classes for no-underline links */
a {
  text-decoration: none;
  color: inherit;
}

/* Reusable component classes - CDN compatible */
.form-input {
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  padding: 0.75rem 1rem;
  background-color: white;
  color: #111827;
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  border-color: #9333ea;
  box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.35);
}

body[data-theme='dark'] .form-input {
  border-color: #4b5563;
  background-color: #111827;
  color: #f9fafb;
}

.form-label {
  font-size: var(--font-small);
  font-weight: 500;
  color: #374151;
}

body[data-theme='dark'] .form-label {
  color: #d1d5db;
}

.form-section-box {
  padding: 1.5rem;
  background-color: #f9fafb;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}

body[data-theme='dark'] .form-section-box {
  background-color: rgba(31, 41, 55, 0.5);
  border-color: #374151;
}

.section-title {
  font-size: var(--font-h5);
  font-weight: 700;
  color: #111827;
}

body[data-theme='dark'] .section-title {
  color: #f9fafb;
}

.form-group-label {
  font-size: var(--font-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

body[data-theme='dark'] .form-group-label {
  color: #9ca3af;
}

.form-hint {
  font-size: var(--font-caption);
  line-height: 1.5;
  color: #6b7280;
}

body[data-theme='dark'] .form-hint {
  color: #9ca3af;
}

.btn-primary {
  padding: 0.875rem 2rem;
  border-radius: 0.625rem;
  font-size: var(--font-body);
  background-color: #9333ea;
  color: white;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(147, 51, 234, 0.4);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  box-shadow: 0 20px 25px -5px rgba(147, 51, 234, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 0.875rem 2rem;
  border-radius: 0.625rem;
  font-size: var(--font-body);
  background-color: white;
  border: 1px solid #d1d5db;
  color: #111827;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: #f9fafb;
}

body[data-theme='dark'] .btn-secondary {
  background-color: #1f2937;
  border-color: #4b5563;
  color: #f9fafb;
}

body[data-theme='dark'] .btn-secondary:hover {
  background-color: #374151;
}

.card {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body[data-theme='dark'] .card {
  background-color: #111827;
  border-color: #1f2937;
}

/* Compact helper styles */
.eyebrow {
  font-size: var(--font-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4338ca;
  font-weight: 600;
}

body[data-theme='dark'] .eyebrow {
  color: #a5b4fc;
}

.card-hero {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

body[data-theme='dark'] .card-hero {
  background-color: #111827;
  border-color: #1f2937;
}

/* Hidden attribute support */
[hidden] {
  display: none !important;
}

/* Artist cards */
.artist-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 15px 35px -18px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.artist-card:hover {
  transform: translateY(-4px);
  border-color: #c7d2fe;
  box-shadow: 0 25px 45px -20px rgba(79, 70, 229, 0.35);
}

body[data-theme='dark'] .artist-card {
  background: #0f172a;
  border-color: #1f2937;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
}

body[data-theme='dark'] .artist-card:hover {
  border-color: #4338ca;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
}

.artist-grid .artist-card {
  padding: 0;
}

.artist-card-footer {
  margin-top: auto;
}

.artist-card-footer .artist-follow-action {
  flex-shrink: 0;
  margin-left: auto;
}

.artist-card-footer .artist-follow-btn {
  white-space: nowrap;
}

.artist-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.artist-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.25rem 0.75rem;
  font-size: 0.95rem;
  color: #1f2937;
}

body[data-theme='dark'] .artist-stats {
  color: #e5e7eb;
}

.tag-list,
.artist-availability {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.artist-media {
  margin-top: 0.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.info { background: #eef2ff; color: #4338ca; }
.badge.success { background: #ecfdf3; color: #166534; }
.badge.neutral { background: #f3f4f6; color: #374151; }

body[data-theme='dark'] .badge.info { background: #312e81; color: #e0e7ff; }
body[data-theme='dark'] .badge.success { background: #0f172a; color: #bbf7d0; }
body[data-theme='dark'] .badge.neutral { background: #1f2937; color: #e5e7eb; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.8rem;
  font-weight: 600;
}

.chip--soft {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 500;
}

body[data-theme='dark'] .chip { background: #312e81; color: #e0e7ff; }
body[data-theme='dark'] .chip--soft { background: #111827; color: #e5e7eb; }

.muted { color: #4b5563; font-size: 0.95rem; }
body[data-theme='dark'] .muted { color: #cbd5e1; }
.tiny { font-size: 0.8rem; color: #6b7280; }
body[data-theme='dark'] .tiny { color: #9ca3af; }
.bilingual { line-height: 1.4; }

/* Loading and Error States */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--muted);
}

.loading-spinner p {
  margin: 0;
  font-size: 0.9rem;
}

.error-message {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #dc2626;
  background: #fef2f2;
  border-radius: 0.5rem;
  border: 1px solid #fecaca;
}

body[data-theme='dark'] .error-message {
  color: #fca5a5;
  background: #7f1d1d;
  border-color: #991b1b;
}

.error-message p {
  margin: 0;
  font-size: 0.9rem;
}

/* Form Submit Status */
.submit-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.submit-status p {
  margin: 0;
  font-weight: 500;
}

.submit-status ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1.5rem;
}

.submit-status li {
  margin: 0.25rem 0;
}

/* Global accent normalization: green -> purple (Tailwind utility overrides) */
.bg-green-50 { background-color: #f5f3ff !important; }
.bg-green-100 { background-color: #ede9fe !important; }
.bg-green-600 { background-color: #7c3aed !important; }
.bg-green-700 { background-color: #6d28d9 !important; }
.hover\:bg-green-700:hover { background-color: #6d28d9 !important; }
.hover\:bg-green-600:hover { background-color: #7c3aed !important; }
.text-green-600 { color: #7c3aed !important; }
.text-green-700 { color: #6d28d9 !important; }
.text-green-800 { color: #5b21b6 !important; }
.dark .dark\:text-green-200 { color: #ddd6fe !important; }
.dark .dark\:text-green-300 { color: #c4b5fd !important; }
.dark .dark\:text-green-400 { color: #a78bfa !important; }
.dark .dark\:bg-green-900 { background-color: rgba(76, 29, 149, 0.65) !important; }
.dark .dark\:bg-green-900\/20 { background-color: rgba(76, 29, 149, 0.2) !important; }
.dark .dark\:bg-green-900\/30 { background-color: rgba(76, 29, 149, 0.3) !important; }
.dark .dark\:bg-green-900\/40 { background-color: rgba(76, 29, 149, 0.4) !important; }
.dark .dark\:hover\:bg-green-700:hover { background-color: #6d28d9 !important; }
.border-green-100 { border-color: #ddd6fe !important; }
.border-green-200 { border-color: #c4b5fd !important; }
.border-green-300 { border-color: #a78bfa !important; }
.border-green-600 { border-color: #7c3aed !important; }

/* Field tips (? click popover, Aliyun ECS style) */
.gxm-field-tip {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  overflow: visible;
  flex-shrink: 0;
}

.gxm-field-tip__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  border: 1px solid #c0c4cc;
  border-radius: 50%;
  background: #fff;
  color: #909399;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.gxm-field-tip__trigger:hover,
.gxm-field-tip.is-open .gxm-field-tip__trigger {
  border-color: #409eff;
  color: #409eff;
}

.gxm-field-tip__popover {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: max(220px, 16rem);
  max-width: min(320px, 90vw);
  padding: 10px 12px;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: #606266;
  text-align: left;
  white-space: normal;
  pointer-events: none;
}

.gxm-field-tip__popover::before,
.gxm-field-tip__popover::after {
  pointer-events: none;
}

.gxm-field-tip__popover::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #ebeef5;
}

.gxm-field-tip__popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -1px;
  border: 5px solid transparent;
  border-top-color: #fff;
}

.gxm-field-tip.is-open .gxm-field-tip__popover {
  display: block;
  pointer-events: auto;
}

body[data-theme='dark'] .gxm-field-tip__trigger {
  background: #1f2937;
  border-color: #4b5563;
  color: #9ca3af;
}

body[data-theme='dark'] .gxm-field-tip__trigger:hover,
body[data-theme='dark'] .gxm-field-tip.is-open .gxm-field-tip__trigger {
  border-color: #60a5fa;
  color: #60a5fa;
}

body[data-theme='dark'] .gxm-field-tip__popover {
  background: #fff;
  border-color: #ebeef5;
  color: #606266;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.2);
}

body[data-theme='dark'] .gxm-field-tip__popover::after {
  border-top-color: #fff;
}

.gxm-field-tip__popover--rich {
  width: max(260px, 18rem);
  max-width: min(360px, 92vw);
}

.gxm-field-tip__text {
  margin: 0 0 8px;
}

.gxm-field-tip__popover a.gxm-field-tip__link {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #409eff;
  text-decoration: underline;
  cursor: pointer;
  pointer-events: auto;
}

.gxm-field-tip__popover a.gxm-field-tip__link:hover,
.gxm-field-tip__popover a.gxm-field-tip__link:focus-visible {
  color: #66b1ff;
}

/* Page-title tips: open below + left-align so the panel is not clipped by header/overflow. */
.gxm-field-tip--below .gxm-field-tip__popover {
  top: calc(100% + 8px);
  bottom: auto;
  left: 0;
  right: auto;
  transform: none;
  z-index: 60;
}

.gxm-field-tip--below .gxm-field-tip__popover::before,
.gxm-field-tip--below .gxm-field-tip__popover::after {
  top: auto;
  bottom: 100%;
  left: 10px;
  transform: none;
}

.gxm-field-tip--below .gxm-field-tip__popover::before {
  border-top-color: transparent;
  border-bottom-color: #ebeef5;
}

.gxm-field-tip--below .gxm-field-tip__popover::after {
  margin-top: 0;
  margin-bottom: -1px;
  border-top-color: transparent;
  border-bottom-color: #fff;
}

/* Dashboard mobile: FAB + bottom sheet */
.dashboard-mobile-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(109, 40, 217, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-mobile-fab-attention-dot {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: #ef4444;
  border: 2px solid #6d28d9;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.dashboard-mobile-fab--has-attention {
  box-shadow:
    0 10px 28px rgba(109, 40, 217, 0.45),
    0 0 0 2px rgba(239, 68, 68, 0.35);
}

.dashboard-mobile-fab:hover,
.dashboard-mobile-fab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(109, 40, 217, 0.5);
}

.dashboard-mobile-fab[aria-expanded='true'] {
  transform: scale(0.96);
}

.dashboard-mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.dashboard-mobile-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.dashboard-mobile-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  max-height: min(88vh, 36rem);
  flex-direction: column;
  border-radius: 1.25rem 1.25rem 0 0;
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
}

body:not([data-theme='dark']) .dashboard-mobile-sheet-panel {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.15);
}

.dashboard-mobile-sheet-handle {
  flex-shrink: 0;
  width: 2.75rem;
  height: 0.28rem;
  margin: 0.65rem auto 0.35rem;
  border-radius: 9999px;
  background: #6b7280;
}

.dashboard-mobile-sheet-profile {
  flex-shrink: 0;
  padding: 0.5rem 1.25rem 1rem;
  text-align: center;
}

.dashboard-mobile-sheet-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.65rem;
  border-radius: 9999px;
  background: #16a34a;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.dashboard-mobile-sheet-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.dashboard-mobile-sheet-role {
  margin: 0.2rem 0 0.85rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

body:not([data-theme='dark']) .dashboard-mobile-sheet-role {
  color: #6b7280;
}

.dashboard-mobile-sheet-profile .dashboard-sheet-link {
  width: auto;
  justify-content: center;
}

.dashboard-mobile-sheet-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid #4b5563;
  background: #1f2937;
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

body:not([data-theme='dark']) .dashboard-mobile-sheet-cta {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #111827;
}

.dashboard-mobile-sheet-cta:hover,
.dashboard-mobile-sheet-cta:focus-visible {
  background: #374151;
}

body:not([data-theme='dark']) .dashboard-mobile-sheet-cta:hover,
body:not([data-theme='dark']) .dashboard-mobile-sheet-cta:focus-visible {
  background: #e5e7eb;
}

.dashboard-mobile-sheet-divider {
  flex-shrink: 0;
  height: 1px;
  margin: 0 1rem;
  background: #374151;
}

body:not([data-theme='dark']) .dashboard-mobile-sheet-divider {
  background: #e5e7eb;
}

.dashboard-mobile-sheet-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.dashboard-mobile-sheet-section-label {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.dashboard-mobile-sheet-section-hint {
  margin: 0.15rem 0 0.85rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

body:not([data-theme='dark']) .dashboard-mobile-sheet-section-hint {
  color: #6b7280;
}

.dashboard-mobile-sheet-group {
  margin-bottom: 0.85rem;
}

.dashboard-mobile-sheet-group-label {
  margin: 0 0 0.35rem;
  padding: 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

body:not([data-theme='dark']) .dashboard-mobile-sheet-group-label {
  color: #6b7280;
}

.dashboard-sheet-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.5rem;
  border-radius: 0.65rem;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.dashboard-sheet-link:hover,
.dashboard-sheet-link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

body:not([data-theme='dark']) .dashboard-sheet-link:hover,
body:not([data-theme='dark']) .dashboard-sheet-link:focus-visible {
  background: #f3f4f6;
}

.dashboard-sheet-link-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  color: #d1d5db;
}

body:not([data-theme='dark']) .dashboard-sheet-link-icon {
  color: #6b7280;
}

.dashboard-sheet-link-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.dashboard-sheet-link-badge {
  flex-shrink: 0;
  min-width: 1.25rem;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.dashboard-mobile-sheet-footer {
  flex-shrink: 0;
  padding: 0.5rem 1rem 0.25rem;
}

.dashboard-mobile-sheet-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem;
  border: none;
  border-radius: 0.65rem;
  background: transparent;
  color: #9ca3af;
  font-size: 0.85rem;
  cursor: pointer;
}

body:not([data-theme='dark']) .dashboard-mobile-sheet-theme {
  color: #6b7280;
}

.dashboard-mobile-sheet-theme:hover,
.dashboard-mobile-sheet-theme:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

body:not([data-theme='dark']) .dashboard-mobile-sheet-theme:hover,
body:not([data-theme='dark']) .dashboard-mobile-sheet-theme:focus-visible {
  background: #f3f4f6;
}

/* Dashboard sidebar — notifications submenu */
.dashboard-nav-details {
  margin: 0;
}

.dashboard-nav-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dashboard-nav-summary::-webkit-details-marker {
  display: none;
}

.dashboard-nav-summary::marker {
  content: '';
}

.dashboard-nav-chevron {
  margin-left: auto;
  transition: transform 0.15s ease;
}

.dashboard-nav-details[open] .dashboard-nav-chevron {
  transform: rotate(180deg);
}

.dashboard-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  background: #7c3aed;
  color: #fff;
}

.dashboard-nav-count,
.dashboard-sheet-link-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: #e5e7eb;
  color: #374151;
}

body[data-theme='dark'] .dashboard-nav-count,
body[data-theme='dark'] .dashboard-sheet-link-count {
  background: #374151;
  color: #e5e7eb;
}

.dashboard-nav-count--page {
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
}

.dashboard-nav-sub {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.125rem 0 0.25rem;
}

.dashboard-nav-sub-link {
  display: block;
  padding: 0.5rem 1rem 0.5rem 2.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body:not([data-theme='dark']) .dashboard-nav-sub-link:hover,
body:not([data-theme='dark']) .dashboard-nav-sub-link:focus-visible {
  background: #f3f4f6;
  color: #374151;
}

[data-theme='dark'] .dashboard-nav-sub-link {
  color: #9ca3af;
}

[data-theme='dark'] .dashboard-nav-sub-link:hover,
[data-theme='dark'] .dashboard-nav-sub-link:focus-visible {
  background: #374151;
  color: #e5e7eb;
}

.dashboard-nav-sub-link.is-active {
  background: #f3e8ff;
  color: #7c3aed;
}

[data-theme='dark'] .dashboard-nav-sub-link.is-active {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
}

#dashboard-sidebar.w-20 .dashboard-nav-details:not([open]) .dashboard-nav-sub {
  display: none;
}

.gxm-view-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 0.75rem;
  background: rgba(99, 102, 241, 0.08);
}

.gxm-view-switcher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4338ca;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.gxm-view-switcher-btn.is-active {
  background: #fff;
  color: #312e81;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

html.dark .gxm-view-switcher,
body[data-theme='dark'] .gxm-view-switcher {
  background: rgba(99, 102, 241, 0.16);
}

html.dark .gxm-view-switcher-btn,
body[data-theme='dark'] .gxm-view-switcher-btn {
  color: #c7d2fe;
}

html.dark .gxm-view-switcher-btn.is-active,
body[data-theme='dark'] .gxm-view-switcher-btn.is-active {
  background: #1e1b4b;
  color: #eef2ff;
}

.gxm-region-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.gxm-region-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
}

button.gxm-region-btn {
  cursor: pointer;
  font-family: inherit;
  line-height: 1.35;
}

.gxm-region-btn.is-active {
  border-color: #6366f1;
  background: #eef2ff;
  color: #4338ca;
}

html.dark .gxm-region-btn,
body[data-theme='dark'] .gxm-region-btn {
  border-color: #374151;
  background: #111827;
  color: #e5e7eb;
}

html.dark .gxm-region-btn.is-active,
body[data-theme='dark'] .gxm-region-btn.is-active {
  border-color: #818cf8;
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
}

.venue-map-marker-wrap {
  background: transparent;
  border: none;
}

.venue-map-marker {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 9999px;
  background: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.28), 0 2px 8px rgba(15, 23, 42, 0.35);
}

html.dark .venue-map-marker,
body[data-theme='dark'] .venue-map-marker {
  border-color: #ede9fe;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.35), 0 2px 8px rgba(0, 0, 0, 0.45);
}

.venue-map-shell {
  position: relative;
  z-index: 0;
  isolation: isolate; /* keep Leaflet pane z-index inside the map shell */
}

.venue-map-shell .leaflet-container {
  background: #e5e7eb;
  z-index: 0;
}

html.dark .venue-map-shell .leaflet-container,
body[data-theme='dark'] .venue-map-shell .leaflet-container {
  background: #111827;
}

.gxm-home-shows-split {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gxm-home-shows-split__map {
  width: 100%;
}

.gxm-home-show-map-title {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c3aed;
}

html.dark .gxm-home-show-map-title,
body[data-theme='dark'] .gxm-home-show-map-title {
  color: #a78bfa;
}

.gxm-home-show-map {
  height: 16rem;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #f5f5f5;
}

html.dark .gxm-home-show-map,
body[data-theme='dark'] .gxm-home-show-map {
  border-color: #374151;
  background: #171717;
}

/* Mobile home swipe carousels (shows / artists) */
.gxm-home-swipe-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 0 0.5rem;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  scrollbar-width: none;
}

.gxm-home-swipe-row::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.gxm-home-swipe-card {
  position: relative;
  flex: 0 0 auto;
  width: min(68vw, 15.5rem);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1rem;
  text-decoration: none;
  color: #fff;
  scroll-snap-align: start;
  background: #1f2937;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.gxm-home-swipe-card--artist {
  width: min(58vw, 13.5rem);
  aspect-ratio: 3 / 4;
}

.gxm-home-swipe-card__media,
.gxm-home-swipe-card__media img,
.gxm-home-swipe-card__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gxm-home-swipe-card__media img {
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gxm-home-swipe-card:hover .gxm-home-swipe-card__media img,
.gxm-home-swipe-card:focus-visible .gxm-home-swipe-card__media img {
  transform: scale(1.04);
}

.gxm-home-swipe-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(145deg, #7c3aed, #312e81);
}

.gxm-home-swipe-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.35) 42%,
    rgba(0, 0, 0, 0.08) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.gxm-home-swipe-card__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0.9rem 0.95rem 1rem;
  text-align: left;
}

.gxm-home-swipe-card__meta {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
}

.gxm-home-swipe-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gxm-home-swipe-card__sub {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .gxm-home-shows-split {
    flex-direction: row;
    align-items: stretch;
    gap: 1.5rem;
  }

  .gxm-home-shows-split__list {
    flex: 0 0 75%;
    max-width: 75%;
    min-width: 0;
  }

  .gxm-home-shows-split__map {
    flex: 0 0 25%;
    max-width: 25%;
    min-width: 0;
    position: sticky;
    top: 5.5rem;
    align-self: flex-start;
  }

  .gxm-home-show-map {
    height: min(36rem, 70vh);
  }
}

.gxm-show-list-split {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gxm-show-list-split__map {
  width: 100%;
}

.gxm-show-list-map {
  height: 16rem;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #f5f5f5;
}

html.dark .gxm-show-list-map,
body[data-theme='dark'] .gxm-show-list-map {
  border-color: #374151;
  background: #171717;
}

@media (min-width: 1024px) {
  .gxm-show-list-split {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .gxm-show-list-split__main {
    flex: 1 1 0;
    min-width: 0;
  }

  .gxm-show-list-split__map {
    flex: 0 0 18rem;
    width: 18rem;
    position: sticky;
    top: 5.5rem;
  }

  .gxm-show-list-map {
    height: 28rem;
  }

  /* Venue browse: equal list / map split */
  .gxm-venue-list-split .gxm-show-list-split__main,
  .gxm-venue-list-split .gxm-show-list-split__map {
    flex: 1 1 0;
    width: auto;
    max-width: 50%;
  }

  .gxm-venue-list-split .gxm-show-list-map {
    height: min(36rem, 70vh);
  }
}

.gxm-show-form-map {
  height: 14rem;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #f5f5f5;
}

html.dark .gxm-show-form-map,
body[data-theme='dark'] .gxm-show-form-map {
  border-color: #374151;
  background: #171717;
}

/* Multi-step form layouts (gig, gig request, match, contact): main column + sticky header */
.step-form-main-column {
  padding-left: 20px;
}

@media (min-width: 1024px) {
  .step-form-main-column {
    padding-left: 30px;
  }
}

.step-form-page-header {
  margin-bottom: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
}

@media (min-width: 1024px) {
  .step-form-page-header {
    position: sticky;
    top: 4rem;
    z-index: 40;
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
  }

  html.dark .step-form-page-header,
  body[data-theme='dark'] .step-form-page-header {
    background-color: rgba(17, 24, 39, 0.95);
    border-bottom-color: #374151;
  }
}

/* Dashboard all-notifications: sticky filter bar + mark-all-read (all breakpoints) */
.dashboard-notifications-sticky-toolbar {
  position: -webkit-sticky;
  position: sticky;
  top: 4rem;
  z-index: 45;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background-color: rgba(249, 250, 251, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

html.dark .dashboard-notifications-sticky-toolbar,
body[data-theme='dark'] .dashboard-notifications-sticky-toolbar {
  background-color: rgba(3, 7, 18, 0.97);
  border-bottom-color: #374151;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

/* Venue / profile public headers: stack and wrap action buttons on narrow viewports */
.profile-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
}

.profile-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  max-width: 100%;
  min-width: 0;
  flex-shrink: 0;
  margin-left: auto;
}

.profile-header-actions > form {
  display: inline-flex;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .profile-header-top {
    flex-wrap: nowrap;
  }
}

@media (max-width: 1023px) {
  .profile-header-top {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-header-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* Public show detail — Eventbrite-inspired layout */
.show-detail-page {
  --show-detail-content-font: 1rem;
  --show-detail-content-leading: 1.6;
}

.show-detail-hero-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 12rem;
  overflow: hidden;
  background: linear-gradient(160deg, #1e1b4b 0%, #130a24 55%, #08050f 100%);
}

@media (min-width: 640px) {
  .show-detail-hero-wrap {
    height: 16rem;
  }
}

@media (min-width: 768px) {
  .show-detail-hero-wrap {
    height: 20rem;
  }
}

@media (min-width: 1024px) {
  .show-detail-hero-wrap {
    height: 24rem;
  }
}

.show-detail-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.show-detail-hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #312e81 0%, #1e1b4b 50%, #0f0a1a 100%);
}

.show-detail-hero-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

@media (min-width: 640px) {
  .show-detail-hero-actions {
    right: max(1rem, calc(50vw - 36rem));
  }
}

.show-detail-hero-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.show-detail-hero-share:hover {
  background: #fff;
}

body[data-theme='dark'] .show-detail-hero-share {
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f3f4f6;
}

.show-detail-back {
  font-size: 0.875rem;
}

.show-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .show-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 3rem;
    align-items: start;
  }
}

.show-detail-title {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111827;
  flex: 1;
  min-width: 0;
}

.show-detail-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.show-detail-title-share {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0.125rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.show-detail-title-share:hover {
  color: #7c3aed;
  border-color: #c4b5fd;
  background: #faf5ff;
}

body[data-theme='dark'] .show-detail-title-share {
  border-color: #374151;
  background: #111827;
  color: #9ca3af;
}

body[data-theme='dark'] .show-detail-title-share:hover {
  color: #c4b5fd;
  border-color: #6d28d9;
  background: rgba(88, 28, 135, 0.2);
}

.show-detail-card {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body[data-theme='dark'] .show-detail-card {
  border-color: #374151;
  background: #111827;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.show-detail-info-card {
  margin-top: 0;
}

.show-detail-info-card .show-detail-organizer {
  margin-top: 0;
}

.show-detail-meta-row--spaced {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

body[data-theme='dark'] .show-detail-meta-row--spaced {
  border-top-color: #1f2937;
}

.show-detail-card--map {
  padding-bottom: 1rem;
}

.show-detail-card--map .show-detail-map {
  border: none;
}

.show-detail-section-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: #7c3aed;
}

body[data-theme='dark'] .show-detail-section-icon {
  color: #c4b5fd;
}

body[data-theme='dark'] .show-detail-title {
  color: #f9fafb;
}

.show-detail-organizer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.show-detail-organizer-avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  overflow: hidden;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.show-detail-organizer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.show-detail-organizer-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #6b7280;
}

.show-detail-organizer-by {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
}

body[data-theme='dark'] .show-detail-organizer-by {
  color: #9ca3af;
}

.show-detail-organizer-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
}

.show-detail-organizer-name a {
  color: #7c3aed;
  text-decoration: none;
}

.show-detail-organizer-name a:hover {
  text-decoration: underline;
}

body[data-theme='dark'] .show-detail-organizer-name {
  color: #f3f4f6;
}

.show-detail-meta-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.875rem;
  align-items: flex-start;
}

.show-detail-meta-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  color: #6b7280;
}

.show-detail-meta-body {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #374151;
}

body[data-theme='dark'] .show-detail-meta-body {
  color: #d1d5db;
}

.show-detail-meta-strong {
  font-weight: 600;
  color: #111827;
}

body[data-theme='dark'] .show-detail-meta-strong {
  color: #f9fafb;
}

.show-detail-meta-muted {
  color: #6b7280;
}

.show-detail-meta-block {
  display: block;
  margin-top: 0.25rem;
}

.show-detail-meta-link {
  font-weight: 600;
  color: #7c3aed;
  text-decoration: none;
}

.show-detail-meta-link:hover {
  text-decoration: underline;
}

.show-detail-section {
  margin-top: 0;
}

.show-detail-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
}

body[data-theme='dark'] .show-detail-section-title {
  color: #f9fafb;
}

.show-detail-overview {
  margin: 0;
  font-size: var(--show-detail-content-font);
  line-height: var(--show-detail-content-leading);
  color: #374151;
}

body[data-theme='dark'] .show-detail-overview {
  color: #d1d5db;
}

.show-detail-genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.show-detail-genre-tag {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: #f3e8ff;
  color: #6b21a8;
}

body[data-theme='dark'] .show-detail-genre-tag {
  background: rgba(88, 28, 135, 0.35);
  color: #e9d5ff;
}

.show-detail-lineup {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.show-detail-lineup-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #7c3aed;
  text-decoration: none;
}

.show-detail-lineup-link:hover {
  text-decoration: underline;
}

.show-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.show-detail-ticket-card {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

body[data-theme='dark'] .show-detail-ticket-card {
  border-color: #374151;
  background: #111827;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.show-detail-ticket-price {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

body[data-theme='dark'] .show-detail-ticket-price {
  color: #f9fafb;
}

.show-detail-ticket-datetime {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #6b7280;
}

.show-detail-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: #7c3aed;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.show-detail-cta:hover {
  background: #6d28d9;
  color: #fff;
}

.show-detail-cta--disabled {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
  pointer-events: none;
}

body[data-theme='dark'] .show-detail-cta--disabled {
  background: #374151;
  color: #9ca3af;
}

.show-detail-ticket-note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #6b7280;
}

.show-detail-cancel-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #fca5a5;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b91c1c;
  cursor: pointer;
}

body[data-theme='dark'] .show-detail-cancel-btn {
  background: #111827;
  border-color: #991b1b;
  color: #fca5a5;
}

.show-detail-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  border-top: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

body[data-theme='dark'] .show-detail-mobile-cta {
  border-color: #374151;
  background: rgba(17, 24, 39, 0.96);
}

.show-detail-cta--mobile {
  margin-top: 0;
}

.show-detail-page:has(.show-detail-mobile-cta) {
  padding-bottom: 4.5rem;
}

@media (min-width: 1024px) {
  .show-detail-page:has(.show-detail-mobile-cta) {
    padding-bottom: 0;
  }
}

.show-detail-modal[hidden] {
  display: none !important;
}

/* Gig request detail modals (legacy class name) */
.gig-detail-modal[hidden] {
  display: none !important;
}

/* Public show list cards — Eventbrite-inspired typography */
.gxm-show-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.25rem;
  padding: 0.875rem 1rem 1rem;
}

.gxm-show-card-title {
  margin: 0 0 0.125rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #1e1b4b;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

body[data-theme='dark'] .gxm-show-card-title {
  color: #f9fafb;
}

.gxm-show-card-datetime,
.gxm-show-card-venue {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: #6b7280;
}

body[data-theme='dark'] .gxm-show-card-datetime,
body[data-theme='dark'] .gxm-show-card-venue {
  color: #9ca3af;
}

.gxm-show-card-sep {
  color: #9ca3af;
}

body[data-theme='dark'] .gxm-show-card-sep {
  color: #6b7280;
}

.gxm-show-card-venue {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.gxm-show-card-price {
  margin: 0;
  margin-top: auto;
  padding-top: 0.625rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1f2937;
}

body[data-theme='dark'] .gxm-show-card-price {
  color: #f3f4f6;
}

.gxm-show-card-media-placeholder {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.gxm-show-card:hover .gxm-show-card-title {
  color: #5b21b6;
}

body[data-theme='dark'] .gxm-show-card:hover .gxm-show-card-title {
  color: #c4b5fd;
}

/* Public show list — Eventbrite-style quick tabs + filter modal */
.gxm-show-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.gxm-show-list-toolbar__main {
  flex: 1 1 auto;
  min-width: 0;
}

.gxm-show-filters-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: #374151;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.gxm-show-filters-open-btn:hover {
  color: #7c3aed;
  border-color: #c4b5fd;
}

.gxm-show-filters-open-btn__badge {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #7c3aed;
}

body[data-theme='dark'] .gxm-show-filters-open-btn {
  color: #e5e7eb;
  background: #1f2937;
  border-color: #4b5563;
}

body[data-theme='dark'] .gxm-show-filters-open-btn:hover {
  color: #c4b5fd;
  border-color: #7c3aed;
}

.gxm-show-quick-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 1px solid #e5e7eb;
}

body[data-theme='dark'] .gxm-show-quick-tabs {
  border-bottom-color: #374151;
}

.gxm-show-quick-tab {
  display: inline-flex;
  align-items: center;
  margin-bottom: -1px;
  padding: 0.625rem 0.125rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  color: #6b7280;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.gxm-show-quick-tab:hover {
  color: #4b5563;
  text-decoration: none;
}

.gxm-show-quick-tab.is-active {
  color: #7c3aed;
  border-bottom-color: #7c3aed;
}

body[data-theme='dark'] .gxm-show-quick-tab {
  color: #9ca3af;
}

body[data-theme='dark'] .gxm-show-quick-tab:hover {
  color: #d1d5db;
}

body[data-theme='dark'] .gxm-show-quick-tab.is-active {
  color: #c4b5fd;
  border-bottom-color: #a78bfa;
}

.gxm-show-filters-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.gxm-show-filters-modal[hidden] {
  display: none !important;
}

.gxm-show-filters-modal__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(17, 24, 39, 0.55);
}

.gxm-show-filters-modal__panel {
  position: relative;
  z-index: 2;
  width: min(100%, 28rem);
  max-height: calc(100vh - 2rem);
  margin: 2rem auto;
  padding: 1.25rem 1.25rem 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-theme='dark'] .gxm-show-filters-modal__panel {
  border-color: #374151;
  background: #111827;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.gxm-show-filters-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.gxm-show-filters-modal__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
}

body[data-theme='dark'] .gxm-show-filters-modal__title {
  color: #f9fafb;
}

.gxm-show-filters-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: #6b7280;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}

.gxm-show-filters-modal__close:hover {
  color: #374151;
  background: #f3f4f6;
}

body[data-theme='dark'] .gxm-show-filters-modal__close:hover {
  color: #e5e7eb;
  background: #374151;
}

.gxm-show-filters-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Keep Search / Reset visible while filter fields scroll */
.gxm-show-filters-modal .gxm-show-filters-modal__actions,
.gxm-show-filters-modal .gxm-filter-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: auto;
  flex-shrink: 0;
  background: #fff;
}

body[data-theme='dark'] .gxm-show-filters-modal .gxm-show-filters-modal__actions,
body[data-theme='dark'] .gxm-show-filters-modal .gxm-filter-actions,
html.dark .gxm-show-filters-modal .gxm-show-filters-modal__actions,
html.dark .gxm-show-filters-modal .gxm-filter-actions {
  background: #111827;
}

/* Modal actions must always show (sidebar-only used to hide them under lg). */
.gxm-show-filters-modal .gxm-filter-actions.gxm-filter-actions--sidebar-only {
  display: flex !important;
}

.gxm-show-filter-block {
  padding: 0.875rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.gxm-show-filter-block:first-child {
  padding-top: 0;
}

.gxm-show-filter-block:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

body[data-theme='dark'] .gxm-show-filter-block {
  border-bottom-color: #1f2937;
}

.gxm-show-filters-modal__hint {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6b7280;
}

body[data-theme='dark'] .gxm-show-filters-modal__hint {
  color: #9ca3af;
}

.gxm-show-filters-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

body[data-theme='dark'] .gxm-show-filters-modal__actions,
html.dark .gxm-show-filters-modal__actions {
  border-top-color: #374151;
}

.gxm-show-filters-modal__actions .gxm-filter-submit,
.gxm-show-filters-modal__actions .gxm-filter-reset {
  flex: 1 1 auto;
  min-width: 7rem;
  min-height: 2.5rem;
  margin-top: 0;
  width: auto;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .gxm-show-filters-modal__panel {
    margin: 0.5rem auto 1.5rem;
  }

  .gxm-show-filters-modal__actions .gxm-filter-submit,
  .gxm-show-filters-modal__actions .gxm-filter-reset {
    flex: 1 1 auto;
  }
}

/* Profile edit — mobile section dropdown */
.profile-edit-mobile-tabs {
  position: relative;
}

.profile-edit-mobile-tabs__trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  color: #4c1d95;
  text-align: left;
  background: rgba(124, 58, 237, 0.1);
  border: 1.5px solid rgba(167, 139, 250, 0.75);
  border-radius: 0.75rem;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.14), 0 4px 16px -8px rgba(124, 58, 237, 0.45);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.profile-edit-mobile-tabs__trigger:hover {
  background: rgba(124, 58, 237, 0.14);
  border-color: #a78bfa;
}

body[data-theme='dark'] .profile-edit-mobile-tabs__trigger {
  color: #e9d5ff;
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.25), 0 4px 18px -8px rgba(124, 58, 237, 0.55);
}

body[data-theme='dark'] .profile-edit-mobile-tabs__trigger:hover {
  background: rgba(124, 58, 237, 0.24);
  border-color: #c4b5fd;
}

.profile-edit-mobile-tabs__icon,
.profile-edit-mobile-tabs__option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  background: rgba(124, 58, 237, 0.16);
  color: #7c3aed;
}

body[data-theme='dark'] .profile-edit-mobile-tabs__icon,
body[data-theme='dark'] .profile-edit-mobile-tabs__option-icon {
  background: rgba(124, 58, 237, 0.28);
  color: #c4b5fd;
}

.profile-edit-mobile-tabs__label {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  text-align: left;
}

.profile-edit-mobile-tabs__label-title {
  width: 100%;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.25;
}

.profile-edit-mobile-tabs__label-subtitle {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  color: #6b7280;
}

body[data-theme='dark'] .profile-edit-mobile-tabs__label-subtitle {
  color: #9ca3af;
}

.profile-edit-mobile-tabs__chevron {
  color: #7c3aed;
  transition: transform 0.15s ease;
}

body[data-theme='dark'] .profile-edit-mobile-tabs__chevron {
  color: #c4b5fd;
}

.profile-edit-mobile-tabs.is-open .profile-edit-mobile-tabs__chevron {
  transform: rotate(180deg);
}

.profile-edit-mobile-tabs__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: min(60vh, 20rem);
  margin: 0;
  padding: 0.35rem;
  overflow-y: auto;
  list-style: none;
  border: 1.5px solid rgba(167, 139, 250, 0.55);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 12px 32px -12px rgba(124, 58, 237, 0.35), 0 0 0 1px rgba(124, 58, 237, 0.08);
}

body[data-theme='dark'] .profile-edit-mobile-tabs__menu {
  border-color: rgba(167, 139, 250, 0.4);
  background: #111827;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(124, 58, 237, 0.2);
}

.profile-edit-mobile-tabs__option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: #374151;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.profile-edit-mobile-tabs__option-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
}

.profile-edit-mobile-tabs__option-label {
  width: 100%;
  line-height: 1.25;
}

.profile-edit-mobile-tabs__option-subtitle {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  color: #6b7280;
}

body[data-theme='dark'] .profile-edit-mobile-tabs__option-subtitle {
  color: #9ca3af;
}

.profile-edit-mobile-tabs__option.is-active .profile-edit-mobile-tabs__option-subtitle {
  color: #7c3aed;
}

body[data-theme='dark'] .profile-edit-mobile-tabs__option.is-active .profile-edit-mobile-tabs__option-subtitle {
  color: #c4b5fd;
}

.profile-edit-mobile-tabs__option:hover {
  background: rgba(124, 58, 237, 0.08);
  color: #5b21b6;
  text-decoration: none;
}

.profile-edit-mobile-tabs__option.is-active {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

body[data-theme='dark'] .profile-edit-mobile-tabs__option {
  color: #e5e7eb;
}

body[data-theme='dark'] .profile-edit-mobile-tabs__option:hover {
  background: rgba(124, 58, 237, 0.2);
  color: #e9d5ff;
}

body[data-theme='dark'] .profile-edit-mobile-tabs__option.is-active {
  background: rgba(124, 58, 237, 0.28);
  color: #f3e8ff;
}

/* Artist profile edit: mobile save bar + bottom status footer */
@media (max-width: 1023px) {
  .artist-profile-save-bar {
    position: sticky;
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    margin-top: 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.25rem;
    background: linear-gradient(
      to top,
      #fff 72%,
      rgba(255, 255, 255, 0.92) 88%,
      transparent
    );
  }

  body[data-theme='dark'] .artist-profile-save-bar {
    background: linear-gradient(
      to top,
      #111827 72%,
      rgba(17, 24, 39, 0.92) 88%,
      transparent
    );
  }

  .artist-profile-mobile-footer {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
  }

  body[data-theme='dark'] .artist-profile-mobile-footer {
    border-top-color: #374151;
  }
}

/* Availability slot fields: prevent mobile time inputs from overflowing */
.availability-row,
.availability-slot-fields {
  min-width: 0;
}

.availability-slot-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.availability-row input[type='time'].availability-slot-input {
  -webkit-appearance: none;
  appearance: none;
}

.availability-row input[type='time'].availability-slot-input::-webkit-date-and-time-value {
  text-align: left;
}

.artist-profile-remaining-trigger.is-active {
  border-color: #7c3aed;
  color: #7c3aed;
  background: #f3e8ff;
}

body[data-theme='dark'] .artist-profile-remaining-trigger.is-active {
  border-color: #a78bfa;
  color: #e9d5ff;
  background: rgba(124, 58, 237, 0.2);
}

.artist-profile-remaining-panel {
  width: 100%;
}

.artist-field-error.checklist-view,
.artist-field-error.availability-row,
label.artist-field-error,
[data-field-box].artist-field-error {
  background-color: #fee2e2 !important;
  border-color: #ef4444 !important;
}

.artist-field-error-input,
.artist-field-error .form-input,
.artist-field-error .availability-slot-input {
  background-color: #fecaca !important;
  border-color: #ef4444 !important;
}

body[data-theme='dark'] .artist-field-error.checklist-view,
body[data-theme='dark'] .artist-field-error.availability-row,
body[data-theme='dark'] label.artist-field-error,
body[data-theme='dark'] [data-field-box].artist-field-error {
  background-color: rgba(127, 29, 29, 0.28) !important;
  border-color: #f87171 !important;
}

body[data-theme='dark'] .artist-field-error-input,
body[data-theme='dark'] .artist-field-error .form-input,
body[data-theme='dark'] .artist-field-error .availability-slot-input {
  background-color: rgba(153, 27, 27, 0.35) !important;
  border-color: #f87171 !important;
}

/* Homepage mobile quick-jump bar (OpenRice-style convenience; desktop unchanged) */
.home-mobile-quick-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0 0.75rem;
}

body[data-theme='dark'] .home-mobile-quick-nav {
  background: #030712;
  border-bottom-color: #1f2937;
}

.home-mobile-quick-nav-track {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.25rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-mobile-quick-nav-track::-webkit-scrollbar {
  display: none;
}

.home-mobile-quick-nav-item {
  flex: 1 1 0;
  min-width: 4.25rem;
  max-width: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

.home-mobile-quick-nav-item:hover,
.home-mobile-quick-nav-item:focus-visible {
  text-decoration: none;
  color: var(--text);
}

.home-mobile-quick-nav-icon {
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  max-width: 2.75rem;
  max-height: 2.75rem;
  flex: 0 0 2.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f3f4f6;
  color: #111827;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.home-mobile-quick-nav-icon svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0;
}

.home-mobile-quick-nav-item:active .home-mobile-quick-nav-icon,
.home-mobile-quick-nav-item:focus-visible .home-mobile-quick-nav-icon {
  transform: scale(0.96);
  background: #fde68a;
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.35);
}

.home-mobile-quick-nav-item.is-active .home-mobile-quick-nav-icon {
  background: #7c3aed;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.28);
  transform: none;
}

.home-mobile-quick-nav-item.is-active .home-mobile-quick-nav-label {
  color: #7c3aed;
  font-weight: 700;
}

body[data-theme='dark'] .home-mobile-quick-nav-icon {
  background: #1f2937;
  color: #f9fafb;
}

body[data-theme='dark'] .home-mobile-quick-nav-item:active .home-mobile-quick-nav-icon,
body[data-theme='dark'] .home-mobile-quick-nav-item:focus-visible .home-mobile-quick-nav-icon {
  background: #854d0e;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.35);
}

body[data-theme='dark'] .home-mobile-quick-nav-item.is-active .home-mobile-quick-nav-icon {
  background: #8b5cf6;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.4);
}

body[data-theme='dark'] .home-mobile-quick-nav-item.is-active .home-mobile-quick-nav-label {
  color: #c4b5fd;
}

.home-mobile-quick-nav-label {
  font-size: 0.6875rem;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  color: #4b5563;
  white-space: nowrap;
}

body[data-theme='dark'] .home-mobile-quick-nav-label {
  color: #d1d5db;
}

@media (min-width: 1024px) {
  .home-mobile-quick-nav {
    display: none !important;
  }
}


/* Home / About dual audience CTA (Musixmatch-style split) */
.home-audience-cta {
  width: 100%;
}

.home-audience-cta__grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .home-audience-cta__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.home-audience-cta__panel {
  min-height: 22rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-audience-cta__panel--artists {
  background: #5b21b6;
  color: #fff;
}

.home-audience-cta__panel--venues {
  background: #f5f3ff;
  color: #111827;
}

body[data-theme='dark'] .home-audience-cta__panel--venues,
html.dark .home-audience-cta__panel--venues {
  background: #1e1b4b;
  color: #f3f4f6;
}

.home-audience-cta__inner {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}

@media (min-width: 900px) {
  .home-audience-cta__inner {
    max-width: 28rem;
    padding: 5rem 2rem;
  }
}

.home-audience-cta__title {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.home-audience-cta__text {
  margin: 1.1rem auto 0;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 20rem;
}

.home-audience-cta__panel--artists .home-audience-cta__text {
  color: rgba(255, 255, 255, 0.9);
}

.home-audience-cta__panel--venues .home-audience-cta__text {
  color: #4b5563;
}

body[data-theme='dark'] .home-audience-cta__panel--venues .home-audience-cta__text,
html.dark .home-audience-cta__panel--venues .home-audience-cta__text {
  color: #c4b5fd;
}

.home-audience-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  justify-content: center;
}

.home-audience-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.home-audience-cta__btn:hover {
  transform: translateY(-1px);
}

.home-audience-cta__btn--dark {
  background: #111827;
  color: #fff;
}

.home-audience-cta__btn--dark:hover {
  background: #000;
  color: #fff;
}

.home-audience-cta__btn--brand {
  background: #5b21b6;
  color: #fff;
}

.home-audience-cta__btn--brand:hover {
  background: #4c1d95;
  color: #fff;
}

.home-audience-cta__btn--ghost-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.home-audience-cta__btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.home-audience-cta__btn--ghost-dark {
  background: transparent;
  color: #5b21b6;
  border: 2px solid #5b21b6;
}

.home-audience-cta__btn--ghost-dark:hover {
  background: rgba(91, 33, 182, 0.08);
  color: #5b21b6;
}

body[data-theme='dark'] .home-audience-cta__btn--ghost-dark,
html.dark .home-audience-cta__btn--ghost-dark {
  color: #ddd6fe;
  border-color: #a78bfa;
}

body[data-theme='dark'] .home-audience-cta__btn--ghost-dark:hover,
html.dark .home-audience-cta__btn--ghost-dark:hover {
  background: rgba(167, 139, 250, 0.12);
  color: #ede9fe;
}
