/* ================================================================== */
/*  QRTix Eventportal – CI-konformes Design (purple accent)            */
/*  Farben abgeleitet von qrtix.site & lab.qrtix.site                  */
/* ================================================================== */

:root {
  color-scheme: light;
  /* QRTix CI – abgeleitet von qrtix.site */
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --ink: #1a202c;
  --ink-secondary: #4a5568;
  --muted: #718096;
  --line: #e2e8f0;
  --panel: #ffffff;
  --accent: #805ad5;
  --accent-dark: #6b46c1;
  --accent-light: #e9d8fd;
  --accent-ring: rgba(128, 90, 213, 0.2);
  --danger: #e53e3e;
  --success: #48bb78;
  --motion-glow-a: rgba(196, 181, 253, 0.16);
  --motion-glow-b: rgba(186, 230, 253, 0.13);
  --motion-glow-a-size: min(70vw, 760px);
  --motion-glow-b-size: min(62vw, 680px);
  --motion-glow-a-blur: 138px;
  --motion-glow-b-blur: 150px;
  --motion-glow-a-opacity: 0.48;
  --motion-glow-b-opacity: 0.38;
  --motion-glow-a-duration: 50s;
  --motion-glow-b-duration: 56s;
  --glass-surface: rgba(255, 255, 255, 0.68);
  --glass-surface-strong: rgba(255, 255, 255, 0.82);
  --glass-surface-soft: rgba(255, 255, 255, 0.48);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(148, 163, 184, 0.34);
  --glass-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  /* Safe areas for notch devices */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --app-viewport-height: 100dvh;
  --app-viewport-offset-top: 0px;
  /* Touch target minimum */
  --touch-target: 44px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a202c;
  --bg-elevated: #2d3748;
  --ink: #f7fafc;
  --ink-secondary: #cbd5e0;
  --muted: #a0aec0;
  --line: #4a5568;
  --panel: #2d3748;
  --accent: #b794f4;
  --accent-dark: #9f7aea;
  --accent-light: #322659;
  --accent-ring: rgba(183, 148, 244, 0.25);
  --danger: #fc8181;
  --success: #68d391;
  --motion-glow-a: rgba(183, 148, 244, 0.22);
  --motion-glow-b: rgba(229, 62, 62, 0.105);
  --motion-glow-a-size: min(74vw, 860px);
  --motion-glow-b-size: min(68vw, 780px);
  --motion-glow-a-blur: 118px;
  --motion-glow-b-blur: 132px;
  --motion-glow-a-opacity: 0.54;
  --motion-glow-b-opacity: 0.42;
  --motion-glow-a-duration: 42s;
  --motion-glow-b-duration: 48s;
  --glass-surface: rgba(45, 55, 72, 0.62);
  --glass-surface-strong: rgba(45, 55, 72, 0.78);
  --glass-surface-soft: rgba(45, 55, 72, 0.42);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-line: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  transition: background var(--transition), color var(--transition);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden {
  display: none !important;
}

.background-motion {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(128, 90, 213, 0.03), transparent 38%),
    linear-gradient(225deg, rgba(45, 212, 191, 0.025), transparent 36%);
  contain: layout paint style;
}

:root[data-theme="dark"] .background-motion {
  background:
    linear-gradient(135deg, rgba(183, 148, 244, 0.048), transparent 38%),
    linear-gradient(225deg, rgba(15, 52, 96, 0.18), transparent 42%);
}

.background-motion::before,
.background-motion::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  will-change: transform;
  pointer-events: none;
}

.background-motion::before {
  width: var(--motion-glow-a-size);
  height: var(--motion-glow-a-size);
  left: -18%;
  top: -20%;
  background: var(--motion-glow-a);
  filter: blur(var(--motion-glow-a-blur));
  opacity: var(--motion-glow-a-opacity);
  animation: backgroundGlowA var(--motion-glow-a-duration) ease-in-out infinite alternate;
}

.background-motion::after {
  width: var(--motion-glow-b-size);
  height: var(--motion-glow-b-size);
  right: -20%;
  bottom: -24%;
  background:
    radial-gradient(circle at 36% 38%, var(--motion-glow-b), transparent 68%),
    rgba(30, 64, 175, 0.045);
  filter: blur(var(--motion-glow-b-blur));
  opacity: var(--motion-glow-b-opacity);
  animation: backgroundGlowB var(--motion-glow-b-duration) ease-in-out infinite alternate;
}

:root[data-theme="dark"] .background-motion::after {
  background:
    radial-gradient(circle at 36% 38%, var(--motion-glow-b), transparent 66%),
    rgba(15, 52, 96, 0.2);
}

@keyframes backgroundGlowA {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(9%, 7%, 0) scale(1.1); }
}

@keyframes backgroundGlowB {
  from { transform: translate3d(2%, 1%, 0) scale(1.04); }
  to { transform: translate3d(-9%, -7%, 0) scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  .background-motion,
  .background-motion::before,
  .background-motion::after {
    animation: none !important;
    transform: none;
    will-change: auto;
  }
}

@media (max-width: 599px) {
  .background-motion {
    opacity: 0.78;
  }

  .background-motion::before {
    width: min(88vw, 390px);
    height: min(88vw, 390px);
    left: -38%;
    top: -10%;
    filter: blur(86px);
    opacity: 0.3;
  }

  .background-motion::after {
    width: min(84vw, 360px);
    height: min(84vw, 360px);
    right: -40%;
    bottom: -12%;
    filter: blur(92px);
    opacity: 0.24;
  }
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  font-size: clamp(26px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #2d3748;
}

:root[data-theme="dark"] h1 {
  color: var(--ink);
}

h2 {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  color: #2d3748;
}

:root[data-theme="dark"] h2 {
  color: var(--ink);
}

h3 {
  font-size: 16px;
  font-weight: 600;
}

button, input, select {
  font: inherit;
}

/* ------------------------------------------------------------------ */
/*  Topbar – Mobile-First (stacked on small screens)                   */
/* ------------------------------------------------------------------ */

.topbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 320;
  gap: 10px;
  padding: calc(8px + var(--safe-top)) 14px 8px;
  padding-left: calc(14px + var(--safe-left));
  padding-right: calc(14px + var(--safe-right));
  border-bottom: 1px solid rgba(226, 232, 240, 0.62);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  overflow: visible;
}

:root[data-theme="dark"] .topbar {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(26, 32, 44, 0.68);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

@supports (backdrop-filter: blur(18px)) {
  .topbar {
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
  }
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  min-width: 0;
  flex-shrink: 0;
}

.topbar-brand-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.topbar-subtitle {
  display: none;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
}

.topbar-brand .eyebrow {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brandLogo {
  display: block;
  height: clamp(34px, 8vw, 62px);
  width: auto;
  max-width: clamp(112px, 24vw, 230px);
  object-fit: contain;
  flex-shrink: 0;
  margin: 0;
  transform: translateY(8px);
}

.onboardingLogo {
  display: inline-block;
  height: 64px;
  width: auto;
  max-width: min(80vw, 360px);
  object-fit: contain;
  margin-bottom: 10px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  width: auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-width: 0;
}

/* Language Dropdown */
.topbar-dropdown {
  position: relative;
}

.topbar-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: var(--touch-target);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.topbar-dropdown-trigger:hover,
.topbar-dropdown-trigger:active {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.topbar-flag {
  font-size: 20px;
  line-height: 1;
}

.topbar-dropdown-label {
  display: none !important; /* Always hidden – only show flag in trigger */
}

.topbar-chevron {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  transition: transform var(--transition);
}

.topbar-dropdown.open .topbar-chevron {
  transform: rotate(180deg);
}

.topbar-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 160px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  z-index: 200;
}

.topbar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: var(--touch-target) !important;
  padding: 8px 12px !important;
  border: none !important;
  border-radius: calc(var(--radius) - 2px) !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background var(--transition);
  text-align: left;
}

.topbar-dropdown-item:hover,
.topbar-dropdown-item:active {
  background: var(--bg) !important;
}

.topbar-dropdown-item.active {
  background: var(--accent-light) !important;
  color: var(--accent-dark) !important;
  font-weight: 700 !important;
}

.themeButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 9999px;
  background: rgba(248, 250, 252, 0.72);
  color: var(--ink);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

:root[data-theme="dark"] .themeButton {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(45, 55, 72, 0.7);
  color: var(--ink);
}

.themeButtonIcon {
  display: block;
  width: 19px;
  height: 19px;
  transition: transform var(--transition);
  pointer-events: none;
}

.themeButton:hover,
.themeButton:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.themeButton:hover .themeButtonIcon {
  transform: rotate(12deg);
}

/* Tabs */
.tabs {
  display: inline-flex;
  position: relative;
  padding: 3px;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 9999px;
  background: rgba(248, 250, 252, 0.66);
  transition: all var(--transition);
  flex: 0 1 auto;
  width: min(100%, 214px);
  min-width: 184px;
  min-height: 42px;
  overflow: hidden;
}

:root[data-theme="dark"] .tabs {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(45, 55, 72, 0.66);
}

.tabs::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  bottom: 3px;
  width: calc(50% - 3px);
  border-radius: 9999px;
  background: var(--accent);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.tabs[data-active-view="list"]::before {
  transform: translateX(100%);
}

.tab {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  padding: 8px 12px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: color var(--transition);
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab.active {
  background: transparent;
  color: white;
  box-shadow: none;
}

.tabIcon {
  display: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tabLabel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 599px) {
  .topbar {
    gap: 7px;
    padding: calc(5px + var(--safe-top)) 12px 5px;
    padding-left: calc(12px + var(--safe-left));
    padding-right: calc(12px + var(--safe-right));
  }

  .brandLogo {
    height: clamp(48px, 12vw, 57px);
    max-width: 144px;
    transform: translateY(10px);
  }

  .topbar-brand,
  .topbar-brand-text {
    height: 32px;
    overflow: visible;
  }

  .topbar-actions {
    gap: 5px;
  }

  .themeButton {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .themeButtonIcon {
    width: 18px;
    height: 18px;
  }

  .tabs {
    width: 82px;
    min-width: 82px;
    min-height: 34px;
  }

  .tab {
    padding: 0;
    min-height: 26px;
  }

  .tabIcon {
    display: block;
  }

  .tabLabel {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ------------------------------------------------------------------ */
/*  Main Layout – Mobile-First                                         */
/* ------------------------------------------------------------------ */

main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 16px auto 48px;
  padding: 0 12px;
  padding-bottom: calc(40px + var(--safe-bottom));
}

.languageBottomLine {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 280;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: calc(22px + var(--safe-bottom));
  padding: 2px calc(14px + var(--safe-right)) calc(2px + var(--safe-bottom)) calc(14px + var(--safe-left));
  border-top: 1px solid rgba(226, 232, 240, 0.28);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

:root[data-theme="dark"] .languageBottomLine {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(26, 32, 44, 0.28);
  box-shadow: none;
}

@supports (backdrop-filter: blur(16px)) {
  .languageBottomLine {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.languageBottomLineLabel {
  display: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.languageBottomLineBtn {
  min-width: 28px;
  min-height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  transition: color var(--transition), opacity var(--transition), box-shadow var(--transition);
}

.languageBottomLineBtn:hover {
  color: var(--accent);
}

.languageBottomLineBtn.active {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 -2px 0 currentColor;
}

.bottomLineLinkBtn {
  min-height: 18px;
  margin-left: 10px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  transition: color var(--transition), box-shadow var(--transition);
}

.bottomLineLinkBtn:hover {
  color: #fff;
  box-shadow: inset 0 -2px 0 currentColor;
}

.bottomLineLinkBtn + .bottomLineLinkBtn {
  margin-left: 8px;
}

:root[data-theme="dark"] .languageBottomLineBtn {
  background: transparent;
}

/* Stats row – 2×2 on mobile, 4-col on tablet+ */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.stats article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  padding: 12px;
  transition: all var(--transition);
}

.stats .statHighlight {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(245, 158, 11, 0.02));
}

.stats .statHighlight span {
  color: #f59e0b;
}

.stats span {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.stats p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

/* ------------------------------------------------------------------ */
/*  Section Header                                                     */
/* ------------------------------------------------------------------ */

.sectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sectionHeader p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

/* ------------------------------------------------------------------ */
/*  Sticky Filter Bar – Mobile-First (single column)                   */
/* ------------------------------------------------------------------ */

.filterBar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

:root[data-theme="dark"] .filterBar {
  background: rgba(45, 55, 72, 0.97);
}

:root:not([data-theme="dark"]) .filterBar {
  background: rgba(255, 255, 255, 0.97);
}

@supports (backdrop-filter: blur(12px)) {
  .filterBar {
    backdrop-filter: blur(12px);
  }
}

.filterGroup {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.filterLabel {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.filterSelect {
  min-height: var(--touch-target);
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  padding: 8px 12px;
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  transition: all var(--transition);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.filterSelect:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* ------------------------------------------------------------------ */
/*  Chip Filter System (inside dropdown panels)                        */
/* ------------------------------------------------------------------ */

.filterChips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.filterChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  white-space: nowrap;
  min-height: var(--touch-target);
}

.filterChip:hover { border-color: var(--accent); color: var(--accent); }

.filterChip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 2px 6px var(--accent-ring);
}

.filterChip .chipCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 9999px;
  background: rgba(0,0,0,0.08);
  font-size: 11px;
  font-weight: 700;
}

.filterChip.active .chipCount { background: rgba(255,255,255,0.25); }

/* ------------------------------------------------------------------ */
/*  Collapsible Filter Rows                                            */
/* ------------------------------------------------------------------ */

.filterRow.is-collapsible {
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: all var(--transition);
}

.filterRowToggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-align: left;
  transition: background var(--transition);
}

.filterRowToggle:hover {
  background: var(--bg);
}

.filterRowToggle .filterRowLabel {
  padding-top: 0;
  flex-shrink: 0;
}

.filterRowActive {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.filterRowActive:empty {
  display: none;
}

.filterRowChevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform var(--transition);
}

.filterRow.is-collapsed .filterRowChevron {
  transform: rotate(180deg);
}

.filterRow.is-collapsible .filterChipRow {
  padding: 6px 14px 12px;
  max-height: 200px;
  overflow-y: auto;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
  opacity: 1;
}

.filterRow.is-collapsed .filterChipRow {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.resultsCount { font-size: 12px; font-weight: 600; color: var(--muted); }

.sortSelect, .viewSelect {
  min-height: var(--touch-target);
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  padding: 6px 10px;
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.sortSelect:focus, .viewSelect:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}



.noResults { grid-column: 1 / -1; text-align: center; padding: 48px 24px; }
.noResultsTitle { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.noResultsHint { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

.noResultsReset {
  padding: 10px 24px;
  border: none;
  border-radius: 9999px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.noResultsReset:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* Event Search Input (legacy, kept for compatibility) */
.eventSearchInput {
  flex: 1;
  min-height: var(--touch-target);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 7px 18px;
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  transition: all var(--transition);
  width: 100%;
}

.eventSearchInput:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.eventSearchInput::placeholder {
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/*  Festival View                                                      */
/* ------------------------------------------------------------------ */

.festivalsContent {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .festivalsContent { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .festivalsContent { grid-template-columns: repeat(3, 1fr); }
}

.festivalCard {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.festivalCard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.festivalCardColor {
  width: 6px;
  flex-shrink: 0;
}

.festivalCardBody {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.festivalCardBody .categoryBadge {
  align-self: flex-start;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 9999px;
  font-weight: 600;
}

.festivalTitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.festivalCity {
  font-size: 13px;
  color: var(--muted);
}

.festivalDate {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.festivalCount {
  font-size: 12px;
  color: var(--ink-secondary);
}

.festivalTicketBtn {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 16px;
  border: 1px solid var(--accent);
  border-radius: 9999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.festivalTicketBtn:hover {
  background: var(--accent);
  color: white;
}

/* Loading Skeleton */
.skeletonGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .skeletonGrid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .skeletonGrid { grid-template-columns: repeat(3, 1fr); }
}

.skeletonCard {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeletonLine {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--line) 25%, var(--bg) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.4s ease-in-out infinite;
}

.skeletonLine.w60 { width: 60%; }
.skeletonLine.w90 { width: 90%; }
.skeletonLine.w40 { width: 40%; }

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ------------------------------------------------------------------ */
/*  Legend Bar                                                         */
/* ------------------------------------------------------------------ */

.legendBar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.legendItem {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.legendDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* ------------------------------------------------------------------ */
/*  Calendar Layout – Day View + Week View                               */
/* ------------------------------------------------------------------ */

.calContent.day-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calContent.week-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Shared: Week section header ────────────────────────────── */
.weekSection {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.weekSectionHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(128, 90, 213, 0.06), transparent);
}

:root[data-theme="dark"] .weekSectionHeader {
  background: linear-gradient(90deg, rgba(183, 148, 244, 0.08), transparent);
}

.weekSectionLabel {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.weekSectionRange {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.weekSectionCount {
  margin-left: auto;
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
  background: rgba(128, 90, 213, 0.1);
  padding: 2px 8px;
  border-radius: 9999px;
}

.weekSectionCurrentBadge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--accent);
  color: white;
  animation: todayPulse 3s ease-in-out infinite;
  white-space: nowrap;
}

/* Merged date banner + week header (current week) */
.weekSectionHeader.mergedDateBanner {
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(128, 90, 213, 0.1), rgba(128, 90, 213, 0.04));
  border: 1px solid rgba(128, 90, 213, 0.2);
  gap: 10px;
}

.weekSectionHeader.mergedDateBanner .dateBannerCenter {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}

.weekSectionHeader.mergedDateBanner .weekSectionCount {
  margin-left: 0;
}

/* ── "Show more" pagination button ─────────────────────────── */
.showMoreWeeksBtn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 24px auto;
  padding: 12px 24px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.showMoreWeeksBtn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(128, 90, 213, 0.3);
}

/* ── WEEK VIEW: Netflix-style 7-day grid ──────────────────── */
.weekScroll {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.weekDayCard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              background 0.3s ease;
  overflow: hidden;
  min-height: 100px;
}

/* Hover: lift up + glow border + subtle scale */
.weekDayCard:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 28px rgba(128, 90, 213, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.weekDayCard.is-weekend {
  border-color: rgba(128, 90, 213, 0.2);
  background: linear-gradient(135deg, rgba(128, 90, 213, 0.02), var(--panel));
}

/* Current day: pulse animation + accent glow */
@keyframes todayPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(128, 90, 213, 0.25), 0 4px 20px rgba(128, 90, 213, 0.15);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(128, 90, 213, 0), 0 6px 30px rgba(128, 90, 213, 0.25);
  }
}

@keyframes todayFloat {
  0%, 100% { transform: translateY(0) scale(1.03); }
  50% { transform: translateY(-3px) scale(1.04); }
}

.weekDayCard.is-today {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(128, 90, 213, 0.25);
  border-color: var(--accent);
  border-width: 2.5px;
  background: linear-gradient(135deg, rgba(128, 90, 213, 0.08), rgba(128, 90, 213, 0.02));
  animation: todayPulse 3s ease-in-out infinite, todayFloat 4s ease-in-out infinite;
}

.weekDayCard.is-today:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 36px rgba(128, 90, 213, 0.3);
  animation: none;
}

/* Accent ring around today badge */
.weekDayCard.is-today .weekDayEventCount {
  background: linear-gradient(135deg, var(--accent), #a855f7);
  box-shadow: 0 0 12px rgba(128, 90, 213, 0.5);
}

/* Accent shimmer on today's date */
.weekDayCard.is-today .weekDayCardDate {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(128, 90, 213, 0.3);
}

.weekDayCard.is-past {
  opacity: 0.45;
}

.weekDayCard.is-past:hover {
  opacity: 0.85;
}

.weekDayCardHeader {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 4px;
  width: 100%;
}

.weekDayCardName {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  flex-shrink: 0;
}

.weekDayCardName.is-today {
  color: var(--accent);
}

.weekDayCardDate {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  flex: 1;
  text-align: center;
}

.weekDayCardEvents {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  margin-top: 4px;
}

/* Event count badge */
.weekDayEventCount {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 2px 6px rgba(128, 90, 213, 0.3);
}

.weekDayMiniEvent {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  border-radius: 4px;
  background: rgba(128, 90, 213, 0.04);
  cursor: pointer;
  transition: background 0.15s ease;
}

.weekDayMiniEvent:hover {
  background: rgba(128, 90, 213, 0.12);
}

.miniEventTitle {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.miniEventTime {
  font-size: 9px;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.weekDayMoreEvents {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  padding: 3px 0;
}

.weekDayNoEvents {
  flex: 1;
  min-height: 30px;
  border-radius: 4px;
  background: rgba(128, 90, 213, 0.02);
  border: 1px dashed rgba(128, 90, 213, 0.08);
}

/* ── PORTRAIT TILES (Week View – poster style) ─────────────── */
.weekDayCard.portrait {
  min-height: 280px;
  padding: 8px;
  gap: 6px;
}

.weekDayPoster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.weekDayPoster.has-image .weekDayPosterIcon {
  display: none;
}

.weekDayPosterText {
  position: absolute;
  inset: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.weekDayPosterTop,
.weekDayPosterBottom {
  display: grid;
  gap: 4px;
}

.weekDayPosterTitle {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.weekDayPosterPlace,
.weekDayPosterLineup {
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.weekDayPosterOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.35) 100%);
  z-index: 1;
}

.weekDayPosterMoreCount {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  opacity: 0.6;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.weekDayPosterIcon {
  position: relative;
  z-index: 2;
  font-size: 28px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  opacity: 0.6;
}

/* Category-specific poster gradients */
.weekDayPoster[data-category="festival"] { background: linear-gradient(135deg, #f59e0b 0%, #d97706 40%, #92400e 100%); }
.weekDayPoster[data-category="openair"] { background: linear-gradient(135deg, #34d399 0%, #059669 40%, #065f46 100%); }
.weekDayPoster[data-category="rave"] { background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 40%, #4c1d95 100%); }
.weekDayPoster[data-category="club"] { background: linear-gradient(135deg, #f472b6 0%, #db2777 40%, #831843 100%); }
.weekDayPoster[data-category="party"] { background: linear-gradient(135deg, #fb923c 0%, #ea580c 40%, #9a3412 100%); }
.weekDayPoster[data-category="konzert"] { background: linear-gradient(135deg, #60a5fa 0%, #2563eb 40%, #1e3a8a 100%); }
.weekDayPoster[data-category="unterhaltung"] { background: linear-gradient(135deg, #fbbf24 0%, #b45309 40%, #78350f 100%); }
.weekDayPoster[data-category="food"] { background: linear-gradient(135deg, #a3e635 0%, #65a30d 40%, #365314 100%); }
.weekDayPoster[data-category="bildung"] { background: linear-gradient(135deg, #22d3ee 0%, #0891b2 40%, #164e63 100%); }
.weekDayPoster[data-category="messe"] { background: linear-gradient(135deg, #c084fc 0%, #9333ea 40%, #581c87 100%); }
.weekDayPoster[data-category="veranstalter"] { background: linear-gradient(135deg, #94a3b8 0%, #475569 40%, #1e293b 100%); }
.weekDayPoster[data-category="sonstige"] { background: linear-gradient(135deg, #d1d5db 0%, #6b7280 40%, #374151 100%); }

.weekDayEventInfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 2px 0;
  cursor: pointer;
}

.weekDayEventTitle {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.weekDayEventMeta {
  font-size: 9px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category chip color dot */
.catChipDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.categoryChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Mobile/tablet: horizontal scroll instead of forcing all cards into one grid */
@media (max-width: 1079px) {
  .weekScroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-top: 8px;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--line);
  }
  
  .weekScroll::-webkit-scrollbar { height: 4px; }
  .weekScroll::-webkit-scrollbar-track { background: var(--line); border-radius: 2px; }
  .weekScroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
  
  .weekDayCard {
    flex-shrink: 0;
    width: 140px;
    scroll-snap-align: start;
    min-height: 110px;
  }

  .weekDayCard.portrait {
    width: 150px;
    min-height: 260px;
  }
  
  .weekDayCard.is-weekend {
    width: 160px;
  }
  
  .weekDayCardDate {
    font-size: 16px;
  }

  .currentDateBanner {
    padding: 8px 12px;
  }

  .dateBannerDay {
    font-size: 16px;
  }

  .dateBannerDate {
    font-size: 12px;
  }

  .dateBannerSpacer {
    width: 40px;
  }

  .weekSectionHeader.mergedDateBanner {
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
  }

  .weekSectionHeader.mergedDateBanner .dateBannerCenter {
    order: -1;
    flex: 1 1 100%;
    justify-content: center;
  }

  .weekSectionHeader.mergedDateBanner .dateBannerDay {
    font-size: 16px;
  }

  .weekSectionHeader.mergedDateBanner .dateBannerDate {
    font-size: 12px;
  }
}

/* ── DAY VIEW: Netflix-style horizontal scroll ─────────────── */
.dayViewBackBtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  align-self: flex-start;
}

.dayViewBackBtn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.daySection {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  min-height: 200px;
  scroll-margin-top: 20px;
}

.daySection.is-past {
  opacity: 0.5;
}

.daySection.is-past:hover {
  opacity: 0.75;
}

.daySection.is-today {
  opacity: 1;
}

.daySection.is-today .dayHeader {
  border-left: 3px solid var(--accent);
  padding-left: 13px;
}

/* Big transparent day name background */
.dayBgLabel {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  color: rgba(128, 90, 213, 0.03);
  pointer-events: none;
  line-height: 1;
  letter-spacing: -0.02em;
  z-index: 0;
  user-select: none;
  text-transform: uppercase;
}

:root[data-theme="dark"] .dayBgLabel {
  color: rgba(183, 148, 244, 0.04);
}

.dayHeader {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(128, 90, 213, 0.06), transparent);
}

.dayHeaderInfo {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.dayHeaderName {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-transform: capitalize;
}

.dayHeaderCount {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  background: rgba(128, 90, 213, 0.08);
  padding: 2px 10px;
  border-radius: 9999px;
}

/* Horizontal event scroll within a day */
.dayEventScroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 12px;
  position: relative;
  z-index: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--line);
}

.dayEventScroll::-webkit-scrollbar { height: 4px; }
.dayEventScroll::-webkit-scrollbar-track { background: var(--line); border-radius: 2px; }
.dayEventScroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.dayEventScroll > .eventCard {
  flex-shrink: 0;
  width: 220px;
  scroll-snap-align: start;
}

/* Compact cards in list mode: less height, no oversized poster ratio */
.calContent.list-view .dayEventScroll > .eventCard {
  width: 200px;
  min-height: 260px;
}

.calContent.list-view .eventCard--compact {
  min-height: 260px;
}

.calContent.list-view .eventCard--compact .eventCardPoster {
  height: 160px;
  aspect-ratio: auto;
}

.calContent.list-view .eventCard--compact .eventCardBody {
  padding: 8px 12px 10px;
}

.calContent.list-view .noDateGrid .eventCard--compact {
  min-height: 260px;
}

.dayEmpty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  width: 100%;
}

/* No-date events grid */
.noDateGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

/* ------------------------------------------------------------------ */
/*  Current Date Banner – always visible at top                          */
/* ------------------------------------------------------------------ */

.currentDateBanner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(128, 90, 213, 0.1), rgba(128, 90, 213, 0.04));
  border: 1px solid rgba(128, 90, 213, 0.2);
  margin-bottom: 16px;
}

.dateBannerWeek {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--accent);
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
}

.dateBannerCenter {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
}

.dateBannerDay {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.dateBannerDate {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.dateBannerSpacer {
  width: 80px;
  flex-shrink: 0;
}

/* Clickable brand logo */
.topbar-brand-clickable {
  cursor: pointer;
  transition: opacity var(--transition);
}
.topbar-brand-clickable:hover {
  opacity: 0.7;
}

/* ------------------------------------------------------------------ */
/*  Event Card – Streaming-style with poster placeholder                */
/* ------------------------------------------------------------------ */

.eventCard {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
  outline: none;
  min-height: 320px;
}

.eventCard:hover,
.eventCard:active {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 28px rgba(128, 90, 213, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.eventCard:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* ── Category Poster Placeholder ────────────────────────── */
.eventCardPoster {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Day view: portrait poster (like A1 poster – 3:4 ratio) */
.dayEventScroll > .eventCard .eventCardPoster {
  height: auto;
  aspect-ratio: 3 / 4;
}

/* Blurred background layer for 1:1 images */
.posterBlurredBg {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(1.4) brightness(0.65);
  transform: scale(1.15);
  z-index: 0;
  display: none;
}

/* Actual image (1:1 centered on poster) */
.posterImage {
  position: relative;
  z-index: 1;
  max-width: 65%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  display: none;
}

.eventCardPoster.has-image .posterBlurredBg,
.eventCardPoster.has-image .posterImage {
  display: block;
}

.posterOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.posterCategoryIcon {
  position: relative;
  z-index: 2;
  font-size: 36px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  opacity: 0.7;
}

.posterPlaceholderCopy {
  position: absolute;
  inset: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.posterPlaceholderTop,
.posterPlaceholderBottom {
  display: grid;
  gap: 4px;
}

.posterPlaceholderTitle {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.posterPlaceholderPlace,
.posterPlaceholderLineup {
  color: rgba(255, 255, 255, 0.93);
  font-size: 11px;
  line-height: 1.3;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category-specific poster gradients (artistic, restrained) */
.eventCardPoster[data-category="festival"] {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 40%, #92400e 100%);
}

.eventCardPoster[data-category="openair"] {
  background: linear-gradient(135deg, #34d399 0%, #059669 40%, #065f46 100%);
}

.eventCardPoster[data-category="rave"] {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 40%, #4c1d95 100%);
}

.eventCardPoster[data-category="club"] {
  background: linear-gradient(135deg, #f472b6 0%, #db2777 40%, #831843 100%);
}

.eventCardPoster[data-category="party"] {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 40%, #9a3412 100%);
}

.eventCardPoster[data-category="konzert"] {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 40%, #1e3a8a 100%);
}

.eventCardPoster[data-category="unterhaltung"] {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 40%, #78350f 100%);
}

.eventCardPoster[data-category="food"] {
  background: linear-gradient(135deg, #a3e635 0%, #65a30d 40%, #365314 100%);
}

.eventCardPoster[data-category="bildung"] {
  background: linear-gradient(135deg, #22d3ee 0%, #0891b2 40%, #164e63 100%);
}

.eventCardPoster[data-category="messe"] {
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 40%, #581c87 100%);
}

.eventCardPoster[data-category="veranstalter"] {
  background: linear-gradient(135deg, #94a3b8 0%, #475569 40%, #1e293b 100%);
}

.eventCardPoster[data-category="sonstige"] {
  background: linear-gradient(135deg, #d1d5db 0%, #6b7280 40%, #374151 100%);
}

/* ── Date Label above card (like streaming service) ──────── */
.eventCardDateLabel {
  display: flex;
  align-items: center;
  padding: 8px 14px 4px;
  position: relative;
  z-index: 3;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--panel);
}

.eventCardDayName {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.eventCardDateNum {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-left: auto;
  white-space: nowrap;
}

/* Card body */
.eventCardBody {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 14px 14px;
  min-height: 0;
  position: relative;
  z-index: 1;
}

/* Past event styling */
.eventCard.is-past {
  opacity: 0.5;
}

.eventCard.is-past:hover {
  opacity: 0.8;
}

/* Title */
.eventTitle {
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #2d3748;
}

:root[data-theme="dark"] .eventTitle {
  color: var(--ink);
}

/* Meta: time · location */
.eventCardMeta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-secondary);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.eventDate {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.eventDot {
  color: var(--muted);
  font-size: 10px;
}

.eventLocation {
  font-weight: 400;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eventTime {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

/* Category badge */
.categoryBadge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* Links */
.eventCardLinks {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  margin-top: auto;
}

/* Weekend accent */
.eventCard.is-weekend {
  border-color: rgba(183, 148, 244, 0.35);
}

:root[data-theme="dark"] .eventCard.is-weekend {
  border-color: rgba(183, 148, 244, 0.2);
}

/* ------------------------------------------------------------------ */
/*  Admin Panel                                                        */
/* ------------------------------------------------------------------ */

/* Admin Grid – single column on mobile */
.adminContent {
  display: grid;
  gap: 16px;
}

#adminView.is-login {
  min-height: min(640px, calc(100dvh - 180px));
  display: grid;
  place-items: center;
}

.adminLoginPanel {
  width: min(420px, 100%);
  max-width: 420px;
  margin: 0 auto;
}

.adminLoginMessage {
  min-height: 20px;
  color: var(--danger);
  font-size: 14px;
}

.twoFactorHint {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.secondaryBtn {
  background: var(--bg);
  color: var(--ink-secondary);
}

.adminSessionBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink-secondary);
  box-shadow: var(--shadow-sm);
}

.adminSessionBar button {
  min-height: 36px;
  padding: 6px 12px;
}

.adminSubnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.adminSubtab {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
}

.adminSubtab.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.organizerProfileEditFields {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.organizerProfileSaveBtn {
  justify-self: start;
  min-height: 34px;
  padding: 6px 12px;
}

.organizerContactModalOverlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  padding: 16px;
}

.organizerContactModal {
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.organizerContactModalActions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.adminGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.adminPage[data-admin-page="sources"] .adminGrid {
  align-items: stretch;
}

.adminPage[data-admin-page="sources"] .adminGrid > .panel,
.adminPage[data-admin-page="sources"] .adminGrid > form.panel {
  height: 100%;
}

.adminPage[data-admin-page="sources"] .sourcePanel {
  margin-top: 0;
}

.adminPage[data-admin-page="sources"] #locationForm,
.adminPage[data-admin-page="sources"] .sourcePanel {
  display: flex;
  flex-direction: column;
}

.adminPage[data-admin-page="sources"] #locationForm button[type="submit"],
.adminPage[data-admin-page="sources"] .sourceActions {
  margin-top: auto;
}

.systemMailPanel .listHeader {
  margin-top: 0;
}

.analyticsDashboardPanel .listHeader {
  margin-top: 0;
}

.dashboardActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dashboardScopeBtn {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
}

.dashboardScopeBtn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.analyticsKpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.analyticsKpis article {
  padding: 12px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass-surface-soft);
}

.analyticsKpis strong {
  display: block;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.analyticsKpis span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.geoipStatus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass-surface-soft);
  color: var(--muted);
  font-size: 13px;
}

.geoipStatus button {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
}

.analyticsGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.analyticsCard {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass-surface-soft);
}

.analyticsCard h3 {
  font-size: 14px;
}

.analyticsMetricLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.analyticsMetricLegend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.analyticsMetricLegend i {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--accent);
}

.analyticsMetricLegend i.is-unique {
  background: var(--success);
}

.analyticsMetricLegend i.is-no-consent {
  background: #94a3b8;
}

.analyticsChart {
  position: relative;
  display: block;
  min-height: 190px;
  height: 220px;
  padding: 10px 0 2px;
}

.analyticsChart canvas {
  width: 100% !important;
  height: 100% !important;
}

.analyticsBarItem {
  display: grid;
  grid-template-rows: 1fr auto auto;
  justify-items: center;
  gap: 4px;
  min-width: 34px;
  height: 180px;
}

.analyticsBarStack {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 120px;
}

.analyticsBar {
  display: block;
  width: 12px;
  min-height: 3px;
  border-radius: 999px 999px 3px 3px;
  background: var(--accent);
}

.analyticsBarUnique {
  background: var(--success);
}

.analyticsBarNoConsent {
  background: #94a3b8;
}

.analyticsBarValue {
  color: var(--ink-secondary);
  font-size: 10px;
  font-weight: 800;
}

.analyticsBarLabel {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.analyticsList {
  display: grid;
  gap: 8px;
}

.analyticsRankRow {
  display: grid;
  grid-template-columns: 24px minmax(90px, 1fr) minmax(80px, 1.2fr) 36px;
  align-items: center;
  gap: 8px;
  color: var(--ink-secondary);
  font-size: 12px;
}

.analyticsRankRow div {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.analyticsRankRow i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.analyticsRankRow em {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.analyticsPieWrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.analyticsPie {
  position: relative;
  width: 132px;
  height: 132px;
  aspect-ratio: 1;
}

.analyticsPie canvas {
  width: 100% !important;
  height: 100% !important;
}

.analyticsLegend {
  display: grid;
  gap: 6px;
  color: var(--ink-secondary);
  font-size: 12px;
}

.analyticsLegend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.analyticsLegend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.analyticsHint {
  color: var(--muted);
  font-size: 12px;
}

@media (min-width: 768px) {
  .analyticsKpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .analyticsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analyticsCardWide {
    grid-column: 1 / -1;
  }
}

.systemMailStatus {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.systemMailStatus.is-active {
  border-color: rgba(72, 187, 120, 0.34);
  background: rgba(72, 187, 120, 0.1);
  color: var(--success);
}

.systemMailStatus.is-ok {
  border-color: rgba(72, 187, 120, 0.34);
  background: rgba(72, 187, 120, 0.1);
  color: var(--success);
}

.systemMailForm,
.systemMailTestForm {
  display: grid;
  gap: 14px;
}

.systemMailGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.systemMailToggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  cursor: pointer;
}

.systemMailToggle input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.smtpHelp {
  padding: 12px 14px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass-surface-soft);
  color: var(--muted);
  font-size: 13px;
}

.twoFactorSetup {
  display: grid;
  gap: 16px;
}

.twoFactorIntro h3 {
  margin: 0 0 4px;
}

.twoFactorIntro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.twoFactorSetupBox {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.twoFactorQrCode {
  display: grid;
  place-items: center;
  justify-self: start;
  width: 188px;
  min-height: 188px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.twoFactorQrCode svg {
  width: 168px;
  height: 168px;
  display: block;
}

.twoFactorSetupBox input,
.twoFactorSetupBox textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.adminUsersList {
  display: grid;
  gap: 10px;
}

.adminUserCard {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.adminUserCard h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.adminUserCard p,
.adminUserMeta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.adminUserMeta {
  display: grid;
  gap: 3px;
  text-align: right;
}

@media (min-width: 768px) {
  .systemMailGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.stackPanel, .stackForm {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 5px;
  color: var(--ink-secondary);
  font-weight: 500;
  font-size: 14px;
}

input, select, textarea {
  width: 100%;
  min-height: var(--touch-target);
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  padding: 8px 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px; /* Prevents iOS zoom on focus */
  transition: all var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* QRTix CI: Pill-Buttons – touch-friendly */
button {
  min-height: var(--touch-target);
  border: 0;
  border-radius: 9999px;
  padding: 10px 24px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

button.danger {
  background: transparent;
  border: 1px solid rgba(229, 62, 62, 0.3);
  color: var(--danger);
  border-radius: 9999px;
}

button.danger:hover {
  background: rgba(229, 62, 62, 0.08);
}

.listHeader {
  margin-top: 28px;
}

.locationList, .cityList {
  display: grid;
  gap: 10px;
}

.cityList {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.locationItem, .cityItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.locationItem p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.locationItem small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.cityItem {
  box-shadow: var(--shadow-sm);
  background: var(--panel);
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 110px;
}

.cityItem .cityName {
  font-weight: 600;
}

.cityInfo {
  display: grid;
  gap: 4px;
  width: 100%;
}

.cityEventStats {
  color: var(--ink-secondary);
  font-size: 12px;
}

.cityGeoTools {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
}

.cityGeoStatus {
  color: var(--muted);
  font-size: 12px;
}

.cityGeoStatus.is-missing {
  color: var(--danger);
}

.cityGeoRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  width: 100%;
}

.cityGeoInput {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 9px;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
}

.cityGeoSaveBtn,
.cityGeoLookupBtn,
.cityGeoResult button {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 12px;
}

.cityGeoResults {
  display: grid;
  gap: 6px;
}

.cityGeoResult {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.cityGeoResult span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.cityGeoResult small {
  color: var(--muted);
  line-height: 1.35;
}

.cityGeoHint,
.cityGeoError {
  color: var(--muted);
  font-size: 12px;
}

.cityGeoError {
  color: var(--danger);
}

.cityActions {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: flex-end;
}

.iconBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
  line-height: 1;
}

.iconBtn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(128, 90, 213, 0.06);
}

.cityDeleteBtn {
  border-color: rgba(229, 62, 62, 0.35);
  color: var(--danger);
}

.cityDeleteBtn:hover {
  border-color: rgba(229, 62, 62, 0.6);
  color: var(--danger);
  background: rgba(229, 62, 62, 0.08);
}

.cityEditInput {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  min-width: 120px;
  box-shadow: 0 0 0 3px rgba(128, 90, 213, 0.12);
}

.promoterContactOverlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
}

.promoterContactPanel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}

.promoterContactPanel.is-result {
  width: min(420px, 100%);
  max-height: none;
  overflow: visible;
  padding: 26px;
}

.promoterContactPanel.is-result.result-success {
  background: #d1fae5;
  color: #064e3b;
}

.promoterContactPanel.is-result.result-error {
  background: #fee2e2;
  color: #7f1d1d;
}

.promoterContactPanel.is-result .promoterContactClose,
.promoterContactPanel.is-result .promoterContactIntro,
.promoterContactPanel.is-result .promoterContactTypeGrid,
.promoterContactPanel.is-result .promoterContactForm {
  display: none;
}

.promoterContactClose {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 20px;
}

.promoterContactIntro h2 {
  margin: 0 40px 4px 0;
}

.promoterContactIntro p {
  margin: 0 0 16px;
  color: var(--muted);
}

.promoterContactTypeGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.promoterTypeBtn {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.promoterTypeIcon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: currentColor;
  opacity: 0.82;
}

.promoterTypeIcon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promoterTypeBtn.active {
  border-color: var(--accent);
  background: rgba(128, 90, 213, 0.1);
  color: var(--accent);
}

.promoterContactForm {
  display: grid;
  gap: 12px;
}

.promoterConsentCheck {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink-secondary);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

.promoterConsentCheck input {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 16px;
  min-width: 16px;
  max-width: 16px;
  height: 16px;
  min-height: 16px;
  max-height: 16px;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--muted);
  border-radius: 3px;
  background: var(--panel);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.promoterConsentCheck input::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  opacity: 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
}

.promoterConsentCheck input:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.promoterConsentCheck input:checked::after {
  opacity: 1;
}

.promoterConsentCheck.is-checked {
  border-color: rgba(128, 90, 213, 0.45);
  background: rgba(128, 90, 213, 0.08);
  color: var(--ink);
}

.promoterConsentCheck input:focus-visible {
  outline: 3px solid rgba(128, 90, 213, 0.24);
  outline-offset: 2px;
}

.promoterFormGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contactHoneypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.promoterContactResult {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink-secondary);
  font-size: 13px;
}

.promoterContactPanel.is-result .promoterContactResult {
  display: grid;
  gap: 16px;
  margin-top: 0;
  padding: 0;
  background: transparent;
  text-align: center;
}

.promoterContactResult p {
  margin: 0;
}

.promoterContactResult button {
  justify-self: center;
  min-width: 92px;
}

.promoterContactPanel.is-result .promoterContactResult.success button {
  background: #064e3b;
  color: #d1fae5;
}

.promoterContactPanel.is-result .promoterContactResult.error button {
  background: #7f1d1d;
  color: #fee2e2;
}

.promoterContactResult.is-loading button {
  display: none;
}

.promoterContactResult.success {
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
}

.promoterContactPanel.is-result .promoterContactResult.success,
.promoterContactPanel.is-result .promoterContactResult.error {
  background: transparent;
}

.promoterContactResult.error {
  color: var(--danger);
  background: rgba(229, 62, 62, 0.08);
}

.legalOverlay {
  position: fixed;
  inset: 0;
  z-index: 1190;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
}

.legalPanel {
  position: relative;
  width: min(620px, 100%);
  max-height: min(84vh, 720px);
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}

.legalPanelWide {
  width: min(780px, 100%);
}

.legalCloseBtn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 20px;
}

.legalContent {
  display: grid;
  gap: 16px;
  color: var(--ink);
}

.legalEyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legalContent h2 {
  margin: 0 40px 0 0;
  font-size: 28px;
  line-height: 1.1;
}

.legalContent section {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.legalContent section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.legalContent h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.legalContent p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.legalContent .legalLead {
  max-width: 62ch;
  color: var(--ink-secondary);
  font-size: 14px;
}

.legalContent a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.legalContent a:hover {
  text-decoration: underline;
}

.contactRequestList {
  display: grid;
  gap: 12px;
}

.adminListFooter,
.adminPagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 700;
}

.adminLoadMoreBtn,
.adminPagination button {
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.adminLoadMoreBtn:hover,
.adminPagination button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.adminPagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.contactRequestTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.contactRequestTab {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 800;
}

.contactRequestTab.active {
  border-color: var(--accent);
  background: rgba(128, 90, 213, 0.1);
  color: var(--accent);
}

.contactRequestCard {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.contactRequestHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.contactRequestType,
.contactRequestStatus {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.contactRequestHeader h3 {
  margin: 4px 0 2px;
  font-size: 16px;
}

.contactRequestHeader p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.contactRequestDetails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.contactRequestDetails div {
  display: grid;
  gap: 2px;
}

.contactRequestDetails strong {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contactRequestDetails span {
  color: var(--ink-secondary);
  font-size: 13px;
}

.contactRequestError span {
  color: var(--danger);
}

.contactRequestEventForm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.contactRequestEventForm label {
  display: grid;
  gap: 4px;
}

.contactRequestEventForm span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contactRequestEventForm input,
.contactRequestEventForm textarea {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 9px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.contactRequestWide {
  grid-column: 1 / -1;
}

.contactRequestActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.contactRequestHint {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}

.requestAcceptBtn {
  color: #059669;
}

.requestRejectBtn {
  color: var(--danger);
}

@media (max-width: 640px) {
  .promoterContactTypeGrid,
  .promoterFormGrid {
    grid-template-columns: 1fr;
  }
}

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--muted);
  background: var(--bg);
  text-align: center;
}

/* ------------------------------------------------------------------ */
/*  CSV Import                                                         */
/* ------------------------------------------------------------------ */

.csvPanel {
  margin-top: 24px;
}

.csvHint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.csvDropzone {
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg);
}

.csvDropzone:hover, .csvDropzone.dragover {
  border-color: var(--accent);
  background: rgba(128, 90, 213, 0.04);
}

.csvDropzone p {
  color: var(--muted);
  font-weight: 500;
}

.csvOptions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.csvPreview {
  overflow-x: auto;
}

.csvFilename {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--ink-secondary);
}

.csvTable table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.csvTable th, .csvTable td {
  border: 1px solid var(--line);
  padding: 6px 10px;
  text-align: left;
  white-space: nowrap;
}

.csvTable th {
  background: var(--accent);
  color: white;
  font-weight: 600;
}

.csvTable tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.02);
}

:root[data-theme="dark"] .csvTable tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.consentRecordsTable {
  overflow-x: auto;
}

.consentAdminStats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.consentAdminStats span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
}

.csvMore {
  text-align: center !important;
  color: var(--muted);
  font-style: italic;
}

.csvResult {
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(128, 90, 213, 0.06);
  border: 1px solid rgba(128, 90, 213, 0.2);
}

.csvSuccess {
  color: var(--accent-dark);
}

.csvErrors {
  color: var(--danger);
  font-size: 13px;
}

.csvErrors ul {
  margin: 6px 0 0 18px;
  padding: 0;
  font-size: 12px;
}

/* ------------------------------------------------------------------ */
/*  Sales Profiles – Ampelsystem                                        */
/* ------------------------------------------------------------------ */

.profileList {
  display: grid;
  gap: 10px;
}

.salesProfileItem {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
}

.salesProfileItem:hover {
  box-shadow: var(--shadow);
}

.salesProfileHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.salesStatusDot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.salesProfileInfo {
  flex: 1;
  min-width: 0;
}

.salesProfileInfo h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.salesProfileMeta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.salesProfileStats {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 44px;
}

.salesEventsCount {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.salesEventsLabel {
  font-size: 8px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.salesToggleBtn {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.salesProfileDetails {
  border-top: 1px solid var(--line);
  padding: 14px;
  background: var(--bg);
}

.salesDetailGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.salesDetail {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.salesDetailLabel {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.salesDetailValue {
  font-size: 14px;
  color: var(--ink);
}

.salesDetailValue a {
  color: var(--accent);
  text-decoration: none;
}

.salesDetailValue a:hover {
  text-decoration: underline;
}

.salesStatusSelect {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  font-size: 14px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
  transition: all var(--transition);
}

.salesStatusSelect:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.salesProfileLinks {
  margin-top: 12px;
  font-size: 13px;
}

.salesProfileLinks a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.salesProfileLinks a:hover {
  text-decoration: underline;
}

.salesProfileTags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.profileTag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(128, 90, 213, 0.08);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
}

@media (min-width: 600px) {
  .salesProfileHeader {
    gap: 14px;
    padding: 14px 18px;
  }

  .salesStatusDot {
    width: 14px;
    height: 14px;
  }

  .salesProfileInfo h3 {
    font-size: 15px;
  }

  .salesProfileMeta {
    font-size: 13px;
  }

  .salesEventsCount {
    font-size: 20px;
  }

  .salesEventsLabel {
    font-size: 9px;
  }

  .salesProfileDetails {
    padding: 18px;
  }

  .salesDetailGrid {
    grid-template-columns: 1fr 1fr;
  }

  .salesStatusSelect {
    width: auto;
    min-width: 160px;
  }
}

/* ------------------------------------------------------------------ */
/*  Club Multi-Select Filter                                           */
/* ------------------------------------------------------------------ */

.clubFilterBar {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.clubFilterHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.clubFilterTitle {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.clubFilterReset {
  min-height: auto !important;
  padding: 4px 14px !important;
  font-size: 12px !important;
  background: var(--bg) !important;
  color: var(--accent) !important;
  border: 1px solid var(--line) !important;
  border-radius: 9999px !important;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition);
}

.clubFilterReset:hover {
  background: var(--accent) !important;
  color: white !important;
  border-color: var(--accent) !important;
}

.clubChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clubChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.clubChip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.clubChip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 2px 6px var(--accent-ring);
}

.clubChip .chipCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 11px;
  font-weight: 700;
}

.clubChip.active .chipCount {
  background: rgba(255, 255, 255, 0.25);
}

/* ------------------------------------------------------------------ */
/*  Organizer Section                                                  */
/* ------------------------------------------------------------------ */

.organizerSection { margin-top: 24px; }

.organizerCountBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 9999px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.organizerSearchBar { display: flex; gap: 10px; margin-bottom: 12px; }

.organizerSearchInput {
  flex: 1;
  min-height: var(--touch-target);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  transition: all var(--transition);
}

.organizerSearchInput:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.organizerCityChips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 14px;
}

.organizerCityChips::-webkit-scrollbar { display: none; }

.organizerCityChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  white-space: nowrap;
}

.organizerCityChip:hover { border-color: var(--accent); color: var(--accent); }
.organizerCityChip.active { background: var(--accent); color: white; border-color: var(--accent); }

.organizerCityChip .chipCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9999px;
  background: rgba(0,0,0,0.08);
  font-size: 11px;
  font-weight: 700;
}

.organizerCityChip.active .chipCount { background: rgba(255,255,255,0.25); }

.organizerList { display: flex; flex-direction: column; gap: 10px; }

.organizerItem {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
}

.organizerItem:hover { box-shadow: var(--shadow); }

.organizerHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}

.organizerHeaderLeft { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.organizerHeaderLeft h3 { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.organizerHeaderRight { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.organizerTypeBadge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(128,90,213,0.1);
  color: var(--accent);
}

.organizerTypeBadge.orphan { background: rgba(245,158,11,0.1); color: #d97706; }
.organizerCity { font-size: 12px; color: var(--muted); font-weight: 500; }
.organizerStats { display: flex; gap: 8px; font-size: 12px; color: var(--ink-secondary); font-weight: 500; }
.organizerUpcoming { color: var(--accent); font-weight: 700; }
.pendingBadge {
  color: #92400e;
  background: #fef3c7;
  border-radius: 9999px;
  padding: 2px 7px;
  font-weight: 800;
}
.organizerStatusDot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.organizerToggleBtn {
  min-height: auto !important;
  padding: 4px 8px !important;
  font-size: 14px !important;
  background: transparent !important;
  color: var(--muted) !important;
  border: none !important;
  cursor: pointer;
}

.organizerDetails { padding: 0 16px 16px; border-top: 1px solid var(--line); }

.organizerDetailGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px 0;
}

.organizerDetail { display: flex; flex-direction: column; gap: 2px; }

.organizerDetailLabel {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.organizerDetailValue { font-size: 14px; color: var(--ink); font-weight: 500; }
.organizerDetailValue a { color: var(--accent); text-decoration: none; }
.organizerDetailValue a:hover { text-decoration: underline; }

.organizerProfileCard {
  padding: 10px 12px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.organizerProfileHeader { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.organizerProfileHeader strong { font-size: 14px; color: var(--ink); }
.organizerProfileMeta { font-size: 12px; color: var(--ink-secondary); margin-bottom: 8px; }
.organizerProfileMeta a { color: var(--accent); text-decoration: none; }

.organizerActions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.organizerActionBtn {
  flex: 1;
  min-height: var(--touch-target);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.organizerActionBtn:hover { border-color: var(--accent); color: var(--accent); }

.organizerActionBtn.danger { color: #ef4444; border-color: #ef4444; background: transparent; }
.organizerActionBtn.danger:hover { background: #ef4444; color: white; }

/* ------------------------------------------------------------------ */
/*  Source Import Panel                                                */
/* ------------------------------------------------------------------ */

.sourcePanel {
  margin-top: 24px;
}

.sourceActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sourceActions button {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
}

.csvActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.csvActions button {
  flex: 1;
  min-width: 140px;
}

.csvDeleteBtn {
  background: transparent !important;
  color: #ef4444 !important;
  border: 1px solid #ef4444 !important;
}

.csvDeleteBtn:hover {
  background: #ef4444 !important;
  color: white !important;
}

.eventsOrganizerBlock {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.eventsOrganizerList {
  display: grid;
  gap: 10px;
}

.eventsOrganizerItem {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.eventsOrganizerSummary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  font-weight: 600;
}

.eventsOrganizerSummary::-webkit-details-marker {
  display: none;
}

.eventsOrganizerCount {
  color: var(--ink-secondary);
  font-size: 12px;
}

.eventsOrganizerBody {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.eventsOrganizerRow {
  border-top: 1px dashed var(--line);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.eventsOrganizerMeta {
  display: grid;
  gap: 3px;
}

.eventsOrganizerMeta small {
  color: var(--ink-secondary);
}

.eventsOrganizerControls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.eventCategorySelect {
  min-width: 150px;
}

.eventCategorySaveBtn {
  min-height: 36px;
  width: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.sourceList {
  margin-top: 12px;
  overflow-x: auto;
}

.sourceList table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.sourceList th,
.sourceList td {
  border: 1px solid var(--line);
  padding: 6px 10px;
  text-align: left;
  white-space: nowrap;
}

.sourceList th {
  background: var(--accent);
  color: white;
  font-weight: 600;
}

.sourceList a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.sourceList a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/*  Responsive – Mobile-First Progressive Enhancement                   */
/* ------------------------------------------------------------------ */

/* === TABLET (≥ 600px) === */
@media (min-width: 600px) {
  main {
    padding: 0 20px;
    padding-bottom: calc(40px + var(--safe-bottom));
    margin: 20px auto 56px;
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
  }

  .stats article {
    padding: 16px;
  }

  .stats span {
    font-size: 28px;
  }

  .stats p {
    font-size: 12px;
  }

  .filterBar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }

  .filterGroup {
    min-width: 130px;
    flex: 1;
  }

  .filterSelect {
    min-height: 38px;
    font-size: 14px;
    padding: 6px 10px;
  }

  .eventCardBody {
    padding: 16px 18px;
  }

  /* topbar-dropdown-label always hidden – flag only in trigger */

  .tabs {
    flex: none;
  }

  .tab {
    min-width: 90px;
    padding: 8px 14px;
    font-size: 14px;
  }

  .csvOptions {
    grid-template-columns: 1fr 1fr;
  }

  .organizerDetailGrid {
    grid-template-columns: 1fr 1fr;
  }

  .organizerCityChips {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .filterChipRow {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* === COMPACT TABLET NAV (600–767px) === */
@media (min-width: 600px) and (max-width: 767px) {
  .topbar {
    gap: 10px;
    padding: calc(5px + var(--safe-top)) 16px 5px;
    padding-left: calc(16px + var(--safe-left));
    padding-right: calc(16px + var(--safe-right));
  }

  .brandLogo {
    height: 48px;
    max-width: 180px;
    transform: translateY(10px);
  }

  .topbar-brand,
  .topbar-brand-text {
    height: 38px;
    overflow: visible;
  }

  .themeButton {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .themeButtonIcon {
    width: 17px;
    height: 17px;
  }

  .tabs {
    width: 188px;
    min-width: 168px;
    min-height: 36px;
  }

  .tab {
    min-width: 0;
    min-height: 28px;
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* === DESKTOP (≥ 768px) === */
@media (min-width: 768px) {
  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 6px clamp(16px, 5vw, 48px);
    padding-top: calc(6px + var(--safe-top));
  }

  .brandLogo {
    height: 52px;
    max-width: 196px;
    transform: translateY(10px);
  }

  .topbar-brand,
  .topbar-brand-text {
    height: 38px;
    overflow: visible;
  }

  .topbar-actions {
    flex: 1;
    width: auto;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .topbar-brand .eyebrow {
    font-size: 11px;
  }

  .themeButton {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .themeButtonIcon {
    width: 17px;
    height: 17px;
  }

  .tabs {
    width: 190px;
    min-width: 176px;
    min-height: 36px;
  }

  .tab {
    min-height: 28px;
    padding: 6px 12px;
    font-size: 13px;
  }

  main {
    padding: 0 clamp(16px, 5vw, 24px);
    padding-bottom: calc(44px + var(--safe-bottom));
    margin: 24px auto 64px;
  }

  .stats span {
    font-size: 30px;
  }

  .stats p {
    font-size: 13px;
  }

  .calContent.week-view {
    gap: 32px;
  }

  .dayEventScroll > .eventCard {
    width: 240px;
  }

  .dayEventScroll > .eventCard .eventCardPoster {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .adminGrid {
    grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr);
  }

  .eventCard:hover {
    transform: translateY(-3px);
  }
}

/* === WIDE DESKTOP (≥ 1080px) === */
@media (min-width: 1080px) {
  .calContent.week-view {
    gap: 40px;
  }

  .dayEventScroll > .eventCard {
    width: 260px;
  }

  .dayEventScroll > .eventCard .eventCardPoster {
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

/* Club chips: horizontal scroll on mobile, wrap on tablet+ */
.clubChips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.clubChips::-webkit-scrollbar {
  display: none;
}

@media (min-width: 600px) {
  .clubChips {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* Mobile-specific: actions full width */
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 599px) {
  .actions {
    justify-content: stretch;
  }

  .actions button {
    flex: 1;
  }
}

/* ------------------------------------------------------------------ */
/*  Event Card – clickable + Pill Buttons                              */
/* ------------------------------------------------------------------ */

.eventPillBtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 28px;
}

.eventPillBtn.pillSource {
  background: rgba(128, 90, 213, 0.1);
  color: var(--accent);
  border-color: rgba(128, 90, 213, 0.25);
}

.eventPillBtn.pillSource:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.eventPillBtn.pillTicket {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

:root[data-theme="dark"] .eventPillBtn.pillTicket {
  color: #6ee7b7;
}

.eventPillBtn.pillTicket:hover {
  background: #10b981;
  color: white !important;
  border-color: #10b981;
}

/* Platform-specific ticket pills: inline style sets color, hover always white */
.eventPillBtn.pillTicket[style*="border-color"]:hover {
  color: white !important;
  filter: brightness(1.15);
}

/* ------------------------------------------------------------------ */
/*  Event Detail Modal – 3D Flip Card                                  */
/* ------------------------------------------------------------------ */

.eventModalOverlay {
  position: fixed;
  top: var(--app-viewport-offset-top);
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--app-viewport-height);
  max-height: var(--app-viewport-height);
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Flip Card Container ─────────────────────────────────── */
.eventModal {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(var(--app-viewport-height) - 32px);
  height: min(calc(var(--app-viewport-height) - 32px), 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  perspective: 1400px;
}

.modalFlipCard {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transform-style: preserve-3d;
  animation: modalFlipIn 0.6s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

@keyframes modalFlipIn {
  0%   { transform: rotateY(-90deg) scale(0.6); opacity: 0.2; }
  50%  { opacity: 1; }
  100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}

.eventModal.is-closing .modalFlipCard {
  animation: modalFlipOut 0.35s ease-in forwards;
}

@keyframes modalFlipOut {
  0%   { transform: rotateY(0deg) scale(1); opacity: 1; }
  100% { transform: rotateY(90deg) scale(0.7); opacity: 0; }
}

.modalCardFace {
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(128, 90, 213, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Hero / Poster Section ───────────────────────────────── */
.modalHero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modalHero.has-image {
  background: #0a0a0f;
}

.modalHeroImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modalHeroImg.modalHeroImgZoomable {
  cursor: zoom-in;
  transition: opacity var(--transition);
}

.modalHeroImg.modalHeroImgZoomable:hover {
  opacity: 0.9;
}

.modalHeroBlurredBg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.4);
  z-index: 0;
}

.modalHeroBlurredBg:empty {
  display: none;
}

.modalHeroGradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--panel), transparent);
  z-index: 1;
}

.modalHeroIcon {
  font-size: 56px;
  opacity: 0.25;
  z-index: 0;
  line-height: 1;
}

.modalHeroIcon:empty {
  display: none;
}

.modalHero.has-image .modalHeroIcon {
  display: none;
}

.modalHeroCategoryBadge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modalHeroCoverflow {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  width: min(520px, 86%);
  height: 146px;
  z-index: 3;
  perspective: 1400px;
  pointer-events: none;
}

.modalHeroFlowCard {
  position: absolute;
  top: 0;
  width: 35%;
  height: 100%;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  padding: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.modalHeroFlowCard.prev,
.modalHeroFlowCard.next {
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease, opacity 0.5s ease;
}

.modalHeroFlowCard.current {
  left: 50%;
  width: 42%;
  transform: translateX(-50%) translateZ(68px) scale(1.08);
  z-index: 3;
  pointer-events: none;
}

.modalHeroFlowCard.prev {
  left: 4%;
  transform: rotateY(46deg) translateZ(-12px) scale(0.84);
  filter: blur(1px) brightness(0.72);
  z-index: 2;
}

.modalHeroFlowCard.next {
  right: 4%;
  transform: rotateY(-46deg) translateZ(-12px) scale(0.84);
  filter: blur(1px) brightness(0.72);
  z-index: 2;
}

.modalHeroFlowCard.prev:hover,
.modalHeroFlowCard.next:hover {
  filter: blur(0.25px) brightness(0.9);
}

.modalHeroFlowBg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
}

.modalHeroFlowBg.no-image {
  background: linear-gradient(135deg, #3f4c63 0%, #232c3d 100%);
}

.modalHeroFlowShade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18));
}

.modalHeroFlowTitle {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cover-flow movement: animate cards, not the modal container. */
.modalHeroCoverflow.flow-next .modalHeroFlowCard.current {
  animation: coverflowCurrentFromRight 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.modalHeroCoverflow.flow-next .modalHeroFlowCard.prev {
  animation: coverflowPrevFromCenter 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.modalHeroCoverflow.flow-next .modalHeroFlowCard.next {
  animation: coverflowNextFromOuter 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.modalHeroCoverflow.flow-prev .modalHeroFlowCard.current {
  animation: coverflowCurrentFromLeft 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.modalHeroCoverflow.flow-prev .modalHeroFlowCard.prev {
  animation: coverflowPrevFromOuter 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.modalHeroCoverflow.flow-prev .modalHeroFlowCard.next {
  animation: coverflowNextFromCenter 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes coverflowCurrentFromRight {
  from { transform: translateX(-34%) translateZ(12px) scale(0.92); opacity: 0.72; }
  to { transform: translateX(-50%) translateZ(68px) scale(1.08); opacity: 1; }
}

@keyframes coverflowCurrentFromLeft {
  from { transform: translateX(-66%) translateZ(12px) scale(0.92); opacity: 0.72; }
  to { transform: translateX(-50%) translateZ(68px) scale(1.08); opacity: 1; }
}

@keyframes coverflowPrevFromCenter {
  from { transform: translateX(26%) rotateY(8deg) scale(0.96); filter: blur(0.2px) brightness(0.9); opacity: 0.92; }
  to { transform: rotateY(46deg) translateZ(-12px) scale(0.84); filter: blur(1px) brightness(0.72); opacity: 1; }
}

@keyframes coverflowNextFromCenter {
  from { transform: translateX(-26%) rotateY(-8deg) scale(0.96); filter: blur(0.2px) brightness(0.9); opacity: 0.92; }
  to { transform: rotateY(-46deg) translateZ(-12px) scale(0.84); filter: blur(1px) brightness(0.72); opacity: 1; }
}

@keyframes coverflowPrevFromOuter {
  from { transform: rotateY(58deg) translateX(-14px) translateZ(-20px) scale(0.78); opacity: 0.4; }
  to { transform: rotateY(46deg) translateZ(-12px) scale(0.84); opacity: 1; }
}

@keyframes coverflowNextFromOuter {
  from { transform: rotateY(-58deg) translateX(14px) translateZ(-20px) scale(0.78); opacity: 0.4; }
  to { transform: rotateY(-46deg) translateZ(-12px) scale(0.84); opacity: 1; }
}

.modalHeroCarouselCount {
  position: absolute;
  top: 14px;
  right: 58px;
  z-index: 4;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.95);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .modalHeroCoverflow {
    height: 82px;
    width: min(360px, 92%);
    bottom: 62px;
  }

  .modalHeroEventInfo {
    bottom: 176px;
  }

  .modalHero.has-coverflow .modalHeroEventInfo {
    bottom: 184px;
    display: grid;
    grid-template-rows: minmax(calc(1.2em * 2), auto) auto auto;
    align-content: start;
    justify-items: center;
    gap: 4px;
  }

  .modalHero.has-coverflow .modalHeroEventTitle {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.2;
    white-space: normal;
    overflow: hidden;
    min-height: calc(1.2em * 2);
    max-height: calc(1.2em * 2);
  }

  .modalHero.has-coverflow .modalHeroEventPlace,
  .modalHero.has-coverflow .modalHeroEventLineup {
    display: block;
    width: 100%;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .modalHeroEventLineup {
    -webkit-line-clamp: 1;
  }

  .modalHeroFlowCard {
    border-radius: 10px;
  }

  .modalHeroFlowCard.prev {
    left: 0;
    transform: rotateY(36deg) translateZ(-8px) scale(0.84);
  }

  .modalHeroFlowCard.next {
    right: 0;
    transform: rotateY(-36deg) translateZ(-8px) scale(0.84);
  }
}

.modalHeroDate {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.modalHeroEventInfo {
  position: absolute;
  top: 54px;
  bottom: 112px;
  left: 16px;
  right: 16px;
  z-index: 4;
  display: grid;
  gap: 4px;
  text-align: center;
  justify-items: center;
  overflow: visible;
  pointer-events: none;
}

.modalHeroEventTitle {
  margin: 0;
  width: 100%;
  color: #fff;
  font-size: clamp(20px, 3.8vw, 30px);
  line-height: 1.18;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 641px) {
  .modalHero.has-coverflow .modalHeroEventInfo {
    bottom: 214px;
  }

  .modalHero.has-coverflow .modalHeroEventPlace,
  .modalHero.has-coverflow .modalHeroEventLineup {
    -webkit-line-clamp: 1;
  }
}

.modalHeroEventPlace,
.modalHeroEventLineup {
  margin: 0;
  width: 100%;
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modalHeroDateText {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modalHeroDateSep {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.modalHeroTime {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.modalHeroClose {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modalHeroClose:hover {
  background: var(--danger);
  transform: rotate(90deg);
}

/* ── Body Section ────────────────────────────────────────── */
.modalBody {
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(20px + var(--safe-bottom));
}

.modalBody .modalSubtitle:first-child {
  margin-top: 0;
}

.modalTitle {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 6px;
}

.modalSubtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
  font-style: italic;
}

.modalSubtitle:empty {
  display: none;
}

/* ── Meta Grid (smart 2-col, collapses to 1 on mobile) ── */
.modalMetaGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(128, 90, 213, 0.04), rgba(128, 90, 213, 0.01));
  border: 1px solid rgba(128, 90, 213, 0.1);
}

.modalMetaItem {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modalMetaLabel {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modalMetaValue {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}

/* ── Description Section ─────────────────────────────────── */
.modalSection {
  margin-bottom: 18px;
}

.modalSectionTitle {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modalSectionTitle::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.modalDescription {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* ── Line-Up Section ─────────────────────────────────────── */
.modalLineUp {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  max-height: 140px;
  overflow-y: auto;
  padding-right: 6px;
}

/* ── Media Section (Video / SoundCloud / Gallery) ────────── */
.modalMediaSection {
  margin-bottom: 18px;
}

.modalVideoEmbed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  margin-bottom: 10px;
}

.modalVideoEmbed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modalSoundcloudEmbed {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}

.modalSoundcloudEmbed iframe {
  width: 100%;
  border: none;
}

/* Gallery Grid – adapts to image count */
.modalGallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.modalGallery.single {
  grid-template-columns: 1fr;
}

.modalGallery.landscape {
  grid-template-columns: 1fr;
}

.modalGalleryItem {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.modalGallery.single .modalGalleryItem {
  aspect-ratio: 16 / 9;
}

.modalGalleryItem:hover {
  transform: scale(1.03);
}

.modalGalleryItem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fullscreen lightbox for gallery images */
.modalLightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: modalFadeIn 0.2s ease-out;
}

.modalLightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.modalLightboxClose {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Promoter Hint ───────────────────────────────────────── */
.modalPromoterHint {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(128, 90, 213, 0.06), rgba(128, 90, 213, 0.02));
  border: 1px solid rgba(128, 90, 213, 0.12);
  text-align: center;
}

.modalPromoterHint p {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin: 0 0 10px;
}

.modalPromoterLink {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 9999px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}

.modalPromoterLink:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* ── Action Buttons ──────────────────────────────────────── */
.modalActionBtns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.modalActionBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  transition: all var(--transition);
  min-height: var(--touch-target);
  cursor: pointer;
}

.modalBtnIcon {
  display: inline-flex;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.modalBtnIcon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.modalActionBtn.btnSource { background: var(--accent); color: white; }
.modalActionBtn.btnSource:hover { background: var(--accent-dark); transform: translateY(-1px); }

.modalActionBtn.btnTicket { background: #10b981; color: white; border-color: #10b981; }
.modalActionBtn.btnTicket:hover { background: #059669; transform: translateY(-1px); }

.modalActionBtn.btnShare { background: #6d28d9; color: #ffffff; }
.modalActionBtn.btnShare:hover { background: #5b21b6; transform: translateY(-1px); }

.modalActionBtn.btnGoogleCal { background: #7c3aed; color: #ffffff; }
.modalActionBtn.btnGoogleCal:hover { background: #6d28d9; transform: translateY(-1px); }

.modalActionBtn.btnIcal { background: #8b5cf6; color: #ffffff; }
.modalActionBtn.btnIcal:hover { background: #7c3aed; transform: translateY(-1px); }

.modalSecondaryBtns {
  margin-top: auto;
  padding-top: 10px;
}

.modalSecondaryBtns .modalActionBtn {
  font-size: 13px;
  padding: 8px 16px;
  min-height: 36px;
}

/* ── Mobile Responsive (Mobile First) ────────────────────── */
@media (max-width: 599px) {
  .eventModalOverlay {
    padding: 0;
    align-items: flex-end;
  }

  .eventModal {
    max-width: 100%;
    height: calc(var(--app-viewport-height) - var(--safe-top));
    max-height: calc(var(--app-viewport-height) - var(--safe-top));
    perspective: none;
  }

  .modalFlipCard {
    animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
  }

  @keyframes modalSlideUp {
    0%   { transform: translateY(100%) scale(0.95); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
  }

  .eventModal.is-closing .modalFlipCard {
    animation: modalSlideDown 0.25s ease-in forwards;
  }

  @keyframes modalSlideDown {
    0%   { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(100%) scale(0.95); opacity: 0; }
  }

  .modalCardFace {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .modalHero {
    aspect-ratio: 4 / 3;
    min-height: 340px;
  }

  .modalBody {
    padding: 16px;
    padding-bottom: calc(16px + var(--safe-bottom));
  }

  .modalMetaGrid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .modalActionBtns {
    flex-direction: column;
  }

  .modalActionBtn {
    width: 100%;
    justify-content: center;
  }

  .modalGallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/* ── Tablet+ (2-column layout for hero + body side by side) ── */
@media (min-width: 768px) {
  .modalCardLandscape {
    display: grid;
    grid-template-columns: 2fr 3fr;
  }

  .modalCardLandscape .modalHero {
    aspect-ratio: auto;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }

  .modalCardLandscape .modalBody {
    max-height: none;
  }
}

/* Short landscape viewports: keep hero and details side by side. */
@media (orientation: landscape) and (max-height: 699px) {
  .eventModalOverlay {
    align-items: center;
    padding: 10px;
  }

  .eventModal {
    width: 80vw;
    max-width: 980px;
    height: min(calc(var(--app-viewport-height) - 20px), 400px);
    max-height: 400px;
    perspective: 1400px;
  }

  .modalFlipCard {
    height: 100%;
  }

  .modalCardFace {
    display: grid;
    grid-template-columns: clamp(50%, 56vw, 60%) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    border-radius: var(--radius-lg);
  }

  .modalHero {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }

  .modalHeroImg {
    height: 100%;
  }

  .modalHeroCoverflow {
    width: min(360px, 86%);
    height: clamp(74px, 24vh, 112px);
    bottom: 44px;
  }

  .modalHeroFlowCard {
    border-radius: 10px;
  }

  .modalHeroCategoryBadge {
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 10px;
  }

  .modalHeroCarouselCount {
    top: 10px;
    right: 52px;
  }

  .modalHeroClose {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }

  .modalHeroEventInfo {
    top: 48px;
    bottom: 76px;
    left: 12px;
    right: 12px;
    gap: 3px;
  }

  .modalHero.has-coverflow .modalHeroEventInfo {
    bottom: clamp(128px, 40vh, 176px);
  }

  .modalHeroEventTitle {
    font-size: clamp(18px, 3.2vw, 24px);
    line-height: 1.16;
  }

  .modalHeroEventPlace,
  .modalHeroEventLineup {
    font-size: 12px;
    line-height: 1.25;
    -webkit-line-clamp: 1;
  }

  .modalHeroDate {
    padding: 8px 12px;
    gap: 6px;
  }

  .modalHeroDateText,
  .modalHeroDateSep,
  .modalHeroTime {
    font-size: 12px;
  }

  .modalBody {
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
    padding-bottom: calc(14px + var(--safe-bottom));
  }

  .modalSubtitle {
    margin-bottom: 12px;
  }

  .modalMetaGrid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px;
  }

  .modalSection,
  .modalMediaSection {
    margin-bottom: 14px;
  }

  .modalDescription {
    line-height: 1.55;
  }

  .modalActionBtns {
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
  }

  .modalActionBtn {
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
  }
}

/* ------------------------------------------------------------------ */
/*  Theme toggle animation – handled per-button hover                  */
/* ------------------------------------------------------------------ */

/* ================================================================== */
/*  NEW UI COMPONENTS – Dropdown Filters, Stats, Weekday               */
/* ================================================================== */

/* ------------------------------------------------------------------ */
/*  Topbar Stats (inline in header)                                    */
/* ------------------------------------------------------------------ */

.topbar-stats {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.topbarStat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 32px;
  white-space: nowrap;
}

.topbarStat:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
  transform: none;
}

.topbarStat span {
  font-weight: 800;
  color: var(--accent);
  font-size: 14px;
}

.topbarStat small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.topbarStat.statHighlight {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(245, 158, 11, 0.02));
}

.topbarStat.statHighlight span {
  color: #f59e0b;
}

/* ------------------------------------------------------------------ */
/*  Quick Time Filter Chips (Netflix-style)                           */
/* ------------------------------------------------------------------ */

.filterQuickTime {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

.filterQuickTime:empty {
  display: none;
}

.filterQuickTime::-webkit-scrollbar { display: none; }

.filterQuickTime .timeChip {
  padding: 5px 14px;
  font-size: 11px;
  min-height: 30px;
  border-radius: 9999px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--ink-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filterQuickTime .timeChip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filterQuickTime .timeChip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(128, 90, 213, 0.3);
}

/* ------------------------------------------------------------------ */
/*  Unified Filter Toolbar                                             */
/* ------------------------------------------------------------------ */

.filterToolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

/* Quick Time Row: shortcuts */
.filterShortcutsRow {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* Filters Row: dropdowns + search */
.filterFiltersRow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  min-height: 38px;
}

/* Keep legacy filterToolbarRow for backwards compat */
.filterToolbarRow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 38px;
}


.filterToolbar .resultsCount {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}

/* Toolbar Search Input */
.toolbarSearchInput {
  flex: 1;
  min-width: 100px;
  max-width: 200px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 4px 14px;
  font-size: 12px;
  background: var(--bg);
  color: var(--ink);
  transition: all var(--transition);
}

.toolbarSearchInput:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.toolbarSearchInput::placeholder {
  color: var(--muted);
}

/* View Toggle (grid/list icons) */
.viewToggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.viewToggleBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 0;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
  min-height: auto;
}

.viewToggleBtn svg {
  width: 16px;
  height: 16px;
}

.viewToggleBtn:hover {
  background: var(--bg-elevated);
  color: var(--ink);
  transform: none;
}

.viewToggleBtn.active {
  background: var(--accent);
  color: white;
}

.viewToggleBtn + .viewToggleBtn {
  border-left: 1px solid var(--line);
}

/* ------------------------------------------------------------------ */
/*  Dropdown Filter Bar (Netflix-style)                               */
/* ------------------------------------------------------------------ */

.filterDropdownBar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.filterDropdown {
  position: relative;
  flex-shrink: 0;
}

/* Marquee animation for overflowing filter values */
@keyframes filterMarquee {
  0%, 15% { transform: translateX(0); }
  40%, 60% { transform: translateX(calc(-100% + 80px)); }
  85%, 100% { transform: translateX(0); }
}

.filterDropdownTrigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 2px solid var(--line);
  border-radius: 9999px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 32px;
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.filterDropdownTrigger:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Left close zone (×) – absolute positioned, only visible when has-value */
.filterDropdownReset {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 28px;
  border-radius: 9999px 0 0 9999px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: white;
  transition: background var(--transition);
  z-index: 2;
}

.filterDropdown.has-value .filterDropdownReset {
  display: flex;
}

.filterDropdownReset:hover {
  background: rgba(0, 0, 0, 0.18);
}

/* Separator line | after close zone */
.filterDropdownReset::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: rgba(255, 255, 255, 0.35);
}

/* Push content right when close zone + separator is visible */
.filterDropdown.has-value .filterDropdownTrigger {
  padding-left: 38px;
}

/* Indicator removed – separator handles visual division */
.filterDropdownIndicator {
  display: none;
}

.filterDropdownLabel {
  font-weight: 600;
  color: var(--ink-secondary);
  font-size: 12px;
}

.filterDropdown.has-value .filterDropdownLabel {
  display: none;
}

.filterDropdownValue {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 12px;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}

.filterDropdownValue:empty {
  display: none;
}

/* Marquee scrolling when text overflows */
.filterDropdownValue.is-overflow {
  animation: filterMarquee 8s ease-in-out infinite;
}

/* Dropdown zone content fills remaining space */
.filterDropdownTrigger > .filterDropdownIndicator,
.filterDropdownTrigger > .filterDropdownLabel,
.filterDropdownTrigger > .filterDropdownValue,
.filterDropdownTrigger > .filterDropdownChevron {
  flex: 1;
  min-width: 0;
}

.filterDropdownTrigger > .filterDropdownChevron {
  flex: 0 0 auto;
}

.filterDropdownChevron {
  width: 12px;
  height: 12px;
  stroke: var(--ink-secondary);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.filterDropdown.is-open .filterDropdownChevron {
  transform: rotate(180deg);
  stroke: white;
}

.filterDropdown.is-open .filterDropdownTrigger {
  border-color: var(--accent-dark);
  background: var(--accent);
  color: white;
}

/* Active (has-value) state – fully filled with accent color */
.filterDropdown.has-value .filterDropdownTrigger {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(128, 90, 213, 0.3);
}

.filterDropdown.has-value .filterDropdownTrigger:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(128, 90, 213, 0.4);
}

/* Left close zone accent background (visible portion inside pill) */
.filterDropdown.has-value .filterDropdownReset {
  background: var(--accent);
}

.filterDropdown.has-value .filterDropdownReset:hover {
  background: var(--accent-dark);
}

.filterDropdown.has-value .filterDropdownChevron {
  stroke: white;
}

.filterDropdown.has-value .filterDropdownValue {
  color: white;
}

/* Dropdown Panel */
.filterDropdownPanel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  max-width: 380px;
  max-height: 340px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  z-index: 150;
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  scrollbar-width: thin;
}

.filterDropdown.is-open .filterDropdownPanel {
  display: flex;
}

.filterDropdownPanel .filterChip {
  padding: 6px 14px;
  font-size: 12px;
  min-height: 34px;
  border-radius: 9999px;
  transition: all var(--transition);
}

.filterDropdownPanel .filterChip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.filterDropdownPanel .filterChip.active {
  transform: none;
}

.filterDropdownDivider {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filterDropdownDivider::before,
.filterDropdownDivider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.radiusChipGroup {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.radiusFilterStatus {
  flex: 1 0 100%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

/* ------------------------------------------------------------------ */
/*  Event Weekday Display                                              */
/* ------------------------------------------------------------------ */

.eventWeekday {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
  letter-spacing: 0.02em;
}

:root[data-theme="dark"] .eventWeekday {
  background: rgba(255, 255, 255, 0.06);
}

/* Friday & Saturday: more prominent */
.eventWeekday.is-friday-saturday {
  background: rgba(128, 90, 213, 0.12);
  color: var(--accent-dark);
  font-weight: 800;
}

:root[data-theme="dark"] .eventWeekday.is-friday-saturday {
  background: rgba(183, 148, 244, 0.18);
  color: var(--accent);
}

/* ------------------------------------------------------------------ */
/*  Responsive: Topbar stats + dropdown bar                            */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
  .topbar-stats {
    gap: 3px;
  }
  .topbarStat {
    padding: 3px 8px;
    font-size: 11px;
    min-height: 28px;
  }
  .topbarStat span {
    font-size: 12px;
  }
  .topbarStat small {
    font-size: 9px;
  }
  .topbar-subtitle {
    display: none;
  }
  .filterToolbar {
    padding: 8px 10px;
    gap: 6px;
    border-radius: var(--radius);
    margin-bottom: 8px;
  }
  .filterShortcutsRow {
    padding-bottom: 6px;
    gap: 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filterShortcutsRow::-webkit-scrollbar {
    display: none;
  }
  .filterFiltersRow {
    gap: 6px;
    flex-wrap: wrap;
    min-height: auto;
  }
  .filterToolbarRow {
    gap: 4px;
  }
  .filterDropdownBar {
    gap: 5px;
    flex-wrap: wrap;
  }
  .filterDropdown {
    flex: 0 1 auto;
  }
  .filterDropdownTrigger {
    padding: 5px 10px;
    font-size: 11px;
    min-height: 30px;
    max-width: 160px;
    border-width: 1.5px;
    gap: 4px;
  }
  .filterDropdown.has-value .filterDropdownTrigger {
    padding-left: 34px;
  }
  .filterDropdownReset {
    width: 26px;
    font-size: 14px;
  }
  .filterDropdownChevron {
    width: 10px;
    height: 10px;
  }
  .filterDropdownLabel {
    font-size: 11px;
  }
  .filterDropdownValue {
    font-size: 11px;
    max-width: 80px;
  }
  /* Mobile Bottom-Sheet Style Dropdown Panel */
  .filterDropdownPanel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    min-width: auto;
    max-width: none;
    max-height: 70vh;
    border-radius: 20px 20px 0 0;
    border: none;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    z-index: 999;
    padding: 12px 16px;
    animation: slideUpPanel 0.25s ease-out;
  }
  /* Backdrop overlay for mobile bottom-sheet */
  .filterBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 998;
    animation: fadeInBackdrop 0.2s ease-out;
  }
  @keyframes fadeInBackdrop {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .filterDropdownPanel .filterChip {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 38px;
  }
  /* Genre group on mobile */
  .genreGroupHeader {
    padding: 12px 4px 8px;
    gap: 8px;
  }
  .genreGroupIcon {
    font-size: 16px;
  }
  .genreGroupLabel {
    font-size: 13px;
  }
  .genreGroupPanel {
    padding: 8px 4px;
    gap: 8px;
    max-height: none;
  }
  #filterGenreChips.filterDropdownPanel,
  #filterFeatureChips.filterDropdownPanel {
    padding: 0;
  }
  .filterDropdown.is-open #filterGenreChips,
  .filterDropdown.is-open #filterFeatureChips {
    padding: 0;
  }
  .toolbarSearchInput {
    max-width: none;
    min-width: 80px;
    flex: 1 1 100%;
    order: 10;
  }
}

@keyframes slideUpPanel {
  from { transform: translateY(100%); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 768px) {
  .topbar-stats {
    gap: 6px;
  }
  .filterDropdownBar {
    gap: 6px;
  }
  .filterToolbarRow {
    flex-wrap: nowrap;
  }
  .filterDropdownTrigger {
    padding: 5px 14px;
    font-size: 12px;
    min-height: 34px;
  }
}

/* Large screens: more breathing room */
@media (min-width: 1024px) {
  .filterDropdownPanel {
    min-width: 300px;
    max-width: 420px;
    max-height: 380px;
  }
  .genreGroupPanel {
    max-height: 280px;
  }
}

/* ------------------------------------------------------------------ */
/*  Timeline View (Gantt-style Festival Overview)                      */
/* ------------------------------------------------------------------ */

.timelineHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.timelineHeaderLeft h2 {
  margin: 0;
  font-size: 20px;
  color: var(--ink);
}

.timelineHeaderLeft p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.timelineHeaderRight {
  display: flex;
  align-items: center;
  gap: 6px;
}

.timelineYearBtn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.timelineYearBtn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.timelineYearLabel {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  min-width: 60px;
  text-align: center;
}

.timelineTodayBtn {
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 9999px;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.timelineTodayBtn:hover {
  background: var(--accent);
  color: #fff;
}

/* Timeline Filters */
.timelineFilters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.timelineFilterGroup {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.timelineChip {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--panel);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.timelineChip:hover {
  border-color: var(--accent);
}

.timelineChip.active {
  border-color: var(--accent);
  background: rgba(128, 90, 213, 0.1);
  color: var(--accent);
  font-weight: 600;
}

.timelineSearch {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  min-width: 120px;
  max-width: 200px;
}

.timelineSearch:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(128, 90, 213, 0.15);
}

.timelineFavToggle {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--panel);
  color: var(--ink-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.timelineFavToggle.active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

/* Timeline Container */
.timelineContainer {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow-x: auto;
  overflow-y: auto;
  min-height: 250px;
  padding-bottom: 12px;
}

.timelineMonths {
  display: flex;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 5;
}

.timelineMonth {
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(0,0,0,0.04);
  flex-shrink: 0;
}

:root[data-theme="dark"] .timelineMonth {
  border-right-color: rgba(255,255,255,0.04);
}

.timelineBody {
  position: relative;
  min-height: 200px;
}

.timelineBar {
  position: absolute;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.timelineBar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
}

.timelineBar.is-fav {
  box-shadow: 0 0 0 2px #f59e0b, 0 2px 8px rgba(245, 158, 11, 0.3);
}

.timelineBarLabel {
  font-size: 11px;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.timelineFavBtn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: none;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}

.timelineBar:hover .timelineFavBtn {
  opacity: 1;
}

.timelineTodayMarker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ef4444;
  z-index: 4;
  pointer-events: none;
}

.timelineTodayMarker::before {
  content: "Heute";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  color: #ef4444;
  white-space: nowrap;
  background: var(--panel);
  padding: 1px 4px;
  border-radius: 4px;
}

.timelineEmpty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--muted);
  font-size: 14px;
}

/* Responsive Timeline */
@media (max-width: 767px) {
  .timelineHeader {
    flex-direction: column;
    align-items: flex-start;
  }
  .timelineFilters {
    flex-direction: column;
    align-items: flex-start;
  }
  .timelineContainer {
    min-height: 180px;
  }
  .timelineBar {
    height: 24px;
  }
  .timelineBarLabel {
    font-size: 10px;
  }
}

/* ================================================================== */
/*  Genre Group Headers (grouped dropdown)                              */
/* ================================================================== */

/* Override flex layout when genre groups are present */
#filterGenreChips.filterDropdownPanel,
#filterFeatureChips.filterDropdownPanel {
  display: none;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.filterDropdown.is-open #filterGenreChips,
.filterDropdown.is-open #filterFeatureChips {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.genreGroupHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 8px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 2;
}

.genreGroupHeader:hover {
  background: var(--bg);
}

.genreGroupHeader:first-child {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.genreGroupHeader.collapsed + .genreGroupPanel {
  display: none;
}

.genreGroupIcon {
  font-size: 15px;
  flex-shrink: 0;
  line-height: 1;
}

.genreGroupLabel {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.genreGroupChevron {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.genreGroupHeader.collapsed .genreGroupChevron {
  transform: rotate(-90deg);
}

.genreGroupCount {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.06);
}

:root[data-theme="dark"] .genreGroupCount {
  background: rgba(255, 255, 255, 0.08);
}

.genreGroupPanel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.genreGroupPanel.collapsed {
  display: none;
}

/* Feature chips with icon */
.featureChip {
  gap: 8px;
}

.featureIcon {
  font-size: 14px;
  line-height: 1;
}

/* ================================================================== */
/*  ONBOARDING OVERLAY – Apple meets Berghain                         */
/* ================================================================== */

.onboardingOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0f;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.onboardingOverlay.is-leaving {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.onboardingOverlay.is-hidden {
  display: none;
}

/* Skip Button */
.onboardingSkipBtn {
  position: fixed;
  top: calc(20px + var(--safe-top));
  right: calc(24px + var(--safe-right));
  z-index: 2;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  color: #a0aec0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.onboardingSkipBtn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Back Button (Step 2 → Step 1) */
.onboardingBackBtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  color: #a0aec0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 16px;
  align-self: flex-start;
}

.onboardingBackBtn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

/* Fractal Canvas Background */
.fractalCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  pointer-events: none;
}

/* Onboarding Content */
.onboardingContent {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  animation: onboardingFadeIn 0.8s ease-out;
}

@keyframes onboardingFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Brand */
.onboardingBrand {
  text-align: center;
}

.onboardingEyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b794f4;
  margin: 0 0 12px;
}

.onboardingTitle {
  font-size: clamp(28px, 5vw, 44px) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #f7fafc !important;
  letter-spacing: -0.02em;
  margin: 0 0 12px !important;
}

.onboardingSubtitle {
  font-size: 16px;
  color: #a0aec0;
  font-weight: 400;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Steps */
.onboardingStep {
  width: 100%;
  animation: stepFadeIn 0.5s ease-out;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* City Grid */
.onboardingCityGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
}

.onboardingCityBtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.onboardingCityBtn:hover {
  background: rgba(128, 90, 213, 0.15);
  border-color: rgba(128, 90, 213, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(128, 90, 213, 0.2);
}

.onboardingCityBtn:active {
  transform: translateY(0);
}

.onboardingCityBtn .cityEventCount {
  font-size: 11px;
  font-weight: 500;
  color: #718096;
}

.onboardingCityBtn:hover .cityEventCount {
  color: #b794f4;
}

/* Time Selection Pills */
.onboardingTimePills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 560px;
}

.onboardingTimePill {
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.onboardingTimePill:hover {
  background: rgba(128, 90, 213, 0.2);
  border-color: rgba(128, 90, 213, 0.4);
  color: #e9d8fd;
  transform: translateY(-1px);
}

.onboardingTimePill.active {
  background: rgba(128, 90, 213, 0.35);
  border-color: rgba(128, 90, 213, 0.6);
  color: #fff;
  font-weight: 600;
}

/* Category Grid */
.onboardingCategoryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  max-width: 640px;
  width: 100%;
}

.onboardingCategoryCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.onboardingCategoryCard:hover {
  background: rgba(128, 90, 213, 0.2);
  border-color: rgba(128, 90, 213, 0.4);
  color: #e9d8fd;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.onboardingCategoryCard--all {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(128, 90, 213, 0.15);
  border-color: rgba(128, 90, 213, 0.3);
  color: #e9d8fd;
  font-weight: 600;
}

.onboardingCategoryCard--all:hover {
  background: rgba(128, 90, 213, 0.3);
  border-color: rgba(128, 90, 213, 0.5);
}

.onboardingCategoryIcon {
  font-size: 28px;
  line-height: 1;
}

.onboardingCategoryLabel {
  font-size: 13px;
  text-align: center;
  font-weight: 600;
}

/* Event count next to category label */
.onboardingCategoryCount {
  font-size: 11px;
  font-weight: 700;
  color: #b794f4;
  background: rgba(128, 90, 213, 0.12);
  padding: 1px 8px;
  border-radius: 9999px;
}

.onboardingCategoryCard--all .onboardingCategoryCount {
  background: rgba(128, 90, 213, 0.25);
  color: #e9d8fd;
}

/* Subcategory panel (Step 3b) */
.onboardingSubcategoryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  max-width: 640px;
  width: 100%;
}

.onboardingCategoryCard--subgroup {
  flex-direction: row;
  justify-content: flex-start;
  padding: 14px 16px;
  gap: 10px;
  border-left: 3px solid rgba(128, 90, 213, 0.3);
}

.onboardingCategoryCard--subgroup .onboardingCategoryLabel {
  text-align: left;
}

/* Loading */
.onboardingLoading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: #a0aec0;
  font-size: 16px;
}

.onboardingSpinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(128, 90, 213, 0.15);
  border-top-color: #b794f4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================================================================== */
/*  TOPBAR – Onboarding Button                                         */
/* ================================================================== */

.topbarOnboardingBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.topbarOnboardingBtn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.topbarOnboardingBtn svg {
  flex-shrink: 0;
}


/* ================================================================== */
/*  RESPONSIVE ONBOARDING                                              */
/* ================================================================== */

/* Rotating headline fade transition */
.onboardingTitle {
  transition: opacity 0.3s ease;
}

@media (max-width: 640px) {
  .onboardingContent {
    padding: 32px 16px;
    gap: 28px;
  }

  .onboardingCityGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .onboardingCityBtn {
    padding: 16px 10px;
    font-size: 14px;
  }

  .onboardingTimePill {
    padding: 10px 18px;
    font-size: 13px;
  }

  .onboardingCategoryGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .onboardingCategoryCard {
    padding: 16px 8px;
  }

  .onboardingCategoryIcon {
    font-size: 24px;
  }

  .onboardingCategoryLabel {
    font-size: 11px;
  }

  .onboardingSubcategoryGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dayEventScroll > .eventCard {
    width: 200px;
  }

  .dayEventScroll > .eventCard .eventCardPoster {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .topbarOnboardingBtn span {
    display: none;
  }

  .onboardingSkipBtn {
    top: calc(12px + var(--safe-top));
    right: calc(12px + var(--safe-right));
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* ================================================================== */
/*  FESTIVAL PAGE – Combined Timeline + List + Year Selector          */
/* ================================================================== */

.festivalPageHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.festivalPageHeaderLeft h2 {
  margin: 0;
  font-size: 22px;
  color: var(--ink);
}

.festivalPageHeaderLeft p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Year Selector */
.festivalYearSelector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.festivalYearBtn {
  width: 36px;
  height: 36px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.festivalYearBtn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

.festivalYearLabel {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  min-width: 70px;
  text-align: center;
}

.festivalTodayBtn {
  padding: 8px 18px;
  border: 2px solid var(--accent);
  border-radius: 9999px;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.festivalTodayBtn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* Festival Filters */
.festivalFilters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.festivalFilterGroup {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.festivalChip {
  padding: 5px 12px;
  border: 2px solid var(--line);
  border-radius: 9999px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.festivalChip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.festivalChip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.festivalSearch {
  padding: 7px 14px;
  border: 2px solid var(--line);
  border-radius: 9999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  min-width: 140px;
  max-width: 220px;
  flex: 1;
}

.festivalSearch:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(128, 90, 213, 0.15);
}

.festivalFavToggle {
  padding: 7px 14px;
  border: 2px solid var(--line);
  border-radius: 9999px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.festivalFavToggle.active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

/* ------------------------------------------------------------------ */
/*  Festival Timeline Section (Sidebar + Gantt)                        */
/* ------------------------------------------------------------------ */

.festivalTimelineSection {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
}

/* --- Festival Sidebar --- */
.festivalSidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  max-height: 560px;
}

.festivalSidebarHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.festivalSidebarTitle {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.festivalSidebarActions {
  display: flex;
  gap: 4px;
}

.festivalSidebarBtn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.festivalSidebarBtn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(99, 102, 241, 0.06);
}

.festivalSidebarList {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.festivalSidebarList::-webkit-scrollbar { width: 4px; }
.festivalSidebarList::-webkit-scrollbar-track { background: transparent; }
.festivalSidebarList::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

.festivalSidebarItem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  transition: background var(--transition);
}

:root[data-theme="dark"] .festivalSidebarItem {
  border-bottom-color: rgba(255,255,255,0.03);
}

.festivalSidebarItem:hover {
  background: rgba(99, 102, 241, 0.04);
}

.festivalSidebarItem.is-active {
  background: transparent;
}

.festivalSidebarCheckbox {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.festivalSidebarFav {
  color: #f59e0b;
  font-size: 12px;
  flex-shrink: 0;
}

.festivalSidebarName {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.festivalSidebarCount {
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
  background: var(--line);
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}

/* --- Gantt Chart Area --- */
.festivalTimelineWrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.festivalZoomControls {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.festivalZoomBtn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.festivalZoomBtn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

.festivalTimelineContainer {
  position: relative;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 560px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--line);
}

.festivalTimelineContainer::-webkit-scrollbar { height: 6px; width: 6px; }
.festivalTimelineContainer::-webkit-scrollbar-track { background: var(--line); border-radius: 3px; }
.festivalTimelineContainer::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* Month header with label spacer */
.festivalTimelineMonths {
  display: flex;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 5;
}

.festivalMonthSpacer {
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.festivalTimelineMonth {
  padding: 10px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-right: 1px solid rgba(0,0,0,0.04);
  flex-shrink: 0;
}

:root[data-theme="dark"] .festivalTimelineMonth {
  border-right-color: rgba(255,255,255,0.04);
}

/* --- Gantt Labels (sticky left column) --- */
.festivalGanttLabels {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 160px;
  z-index: 4;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.festivalGanttRowLabel {
  display: flex;
  align-items: center;
  padding: 0 8px;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

:root[data-theme="dark"] .festivalGanttRowLabel {
  border-bottom-color: rgba(255,255,255,0.03);
}

.festivalGanttRowDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 6px;
}

.festivalGanttRowName {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  transform: rotate(-45deg);
  transform-origin: left center;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
  line-height: 1.2;
}

.festivalGanttRowName.is-fav {
  color: #f59e0b;
}

/* --- Gantt Body --- */
.festivalTimelineBody {
  position: relative;
  margin-left: 160px;
  min-height: 260px;
  overflow: visible;
}

.festivalGanttRow {
  position: absolute;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

:root[data-theme="dark"] .festivalGanttRow {
  border-bottom-color: rgba(255,255,255,0.03);
}

.festivalGanttRow:nth-child(odd) {
  background: rgba(0,0,0,0.01);
}

:root[data-theme="dark"] .festivalGanttRow:nth-child(odd) {
  background: rgba(255,255,255,0.01);
}

/* --- Timeline Bars --- */
.festivalTimelineBar {
  position: absolute;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Single-day events: slightly transparent, dashed border */
.festivalTimelineBar.is-singleday {
  opacity: 0.85;
  border: 1.5px dashed rgba(0,0,0,0.2);
}

/* Multi-day festivals: solid, bolder shadow */
.festivalTimelineBar.is-multiday {
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
  border: 1.5px solid rgba(0,0,0,0.1);
}

.festivalTimelineBar:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  z-index: 10;
}

.festivalTimelineBar.is-fav {
  box-shadow: 0 0 0 2px #f59e0b, 0 4px 12px rgba(245, 158, 11, 0.3);
}

.festivalTimelineBarLabel {
  font-size: 11px;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

/* Duration badge inside Gantt bar */
.festivalDurBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(0,0,0,0.2);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-right: 6px;
  flex-shrink: 0;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.is-singleday .festivalDurBadge {
  background: rgba(0,0,0,0.25);
}

/* --- Today Marker --- */
.festivalTimelineTodayMarker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  z-index: 3;
  pointer-events: none;
}

.festivalTimelineTodayMarker::before {
  content: "Heute";
  position: absolute;
  top: 4px;
  left: -18px;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.festivalTimelineDetail {
  margin-top: 8px;
  padding: 0;
}

/* Festival List Section */
.festivalListHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.festivalListHeader h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.festivalListCount {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* Festival Bar Fav Button */
.festivalTimelineFavBtn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: none;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.festivalTimelineFavBtn:hover {
  transform: translateY(-50%) scale(1.2);
}

.festivalTimelineFavBtn.is-fav {
  color: #f59e0b;
}

/* Sidebar Duration Label */
.festivalSidebarDur {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: auto;
  margin-right: 4px;
  flex-shrink: 0;
}

.festivalSidebarDur.festival {
  background: #fde68a;
  color: #92400e;
}

.festivalSidebarDur.singleday {
  background: #e0e7ff;
  color: #3730a3;
}

/* Duration Badge in Festival Cards */
.festivalCardBadges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.durationBadge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.durationBadge.festival {
  background: #fde68a;
  color: #92400e;
}

.durationBadge.festival::before {
  content: "🎪";
  font-size: 11px;
}

.durationBadge.singleday {
  background: #e0e7ff;
  color: #3730a3;
}

.durationBadge.singleday::before {
  content: "☀️";
  font-size: 11px;
}

/* ------------------------------------------------------------------ */
/*  Cookie Consent                                                     */
/* ------------------------------------------------------------------ */

.privacyManageBtn {
  position: fixed;
  left: calc(10px + var(--safe-left));
  bottom: calc(26px + var(--safe-bottom));
  z-index: 10010;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
}

:root[data-theme="dark"] .privacyManageBtn {
  background: rgba(26, 32, 44, 0.38);
  border-color: rgba(255, 255, 255, 0.1);
}

.cookieConsentOverlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(30px + var(--safe-bottom));
  background: rgba(15, 23, 42, 0.22);
}

.cookieConsentPanel {
  width: min(100%, 760px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: var(--glass-surface-strong);
  box-shadow: var(--glass-shadow);
  color: var(--ink);
  padding: 18px;
}

.cookieConsentIntro {
  display: grid;
  gap: 6px;
}

.cookieConsentEyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookieConsentIntro h2 {
  font-size: 20px;
}

.cookieConsentIntro p:last-child {
  color: var(--ink-secondary);
  font-size: 14px;
}

.cookieConsentOptions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.cookieConsentOption {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 12px;
  padding: 10px 12px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass-surface-soft);
  cursor: pointer;
  transition: background var(--transition);
}

.cookieConsentOption:hover {
  background: var(--glass-surface);
}

.cookieConsentOption input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookieConsentSwitch {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
  border: 1px solid var(--glass-line);
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.28);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.1);
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.cookieConsentSwitch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
  transition: transform var(--transition);
}

.cookieConsentOption.is-selected .cookieConsentSwitch {
  border-color: var(--accent);
  background: var(--accent);
}

.cookieConsentOption.is-selected .cookieConsentSwitch::after {
  transform: translateX(18px);
}

.cookieConsentOption input:focus-visible + .cookieConsentSwitch {
  box-shadow: 0 0 0 3px var(--accent-ring), inset 0 1px 3px rgba(15, 23, 42, 0.1);
}

.cookieConsentOption span {
  display: grid;
  gap: 2px;
}

.cookieConsentOption strong {
  color: var(--ink);
  font-size: 13px;
}

.cookieConsentOption small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.cookieConsentOption.is-locked {
  opacity: 0.82;
  cursor: default;
}

.cookieConsentOption.is-locked .cookieConsentSwitch {
  background: rgba(128, 90, 213, 0.28);
}

.cookieConsentActions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.cookieConsentBtn {
  min-height: 38px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 9999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  box-shadow: 0 6px 16px rgba(128, 90, 213, 0.18);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.cookieConsentBtn:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.cookieConsentBtn:focus-visible,
.privacyManageBtn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.modalMediaBlocked {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass-surface-soft);
}

.modalMediaBlocked strong {
  font-size: 14px;
  color: var(--ink);
}

.modalMediaBlocked span {
  font-size: 13px;
  color: var(--muted);
}

.modalMediaBlocked button {
  justify-self: start;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

@supports (backdrop-filter: blur(14px)) {
  .privacyManageBtn,
  .cookieConsentPanel,
  .cookieConsentOption,
  .cookieConsentBtn,
  .modalMediaBlocked {
    backdrop-filter: blur(14px) saturate(1.25);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
  }
}

@media (max-width: 599px) {
  .cookieConsentOverlay {
    padding: 10px;
    padding-bottom: calc(28px + var(--safe-bottom));
  }

  .cookieConsentPanel {
    padding: 14px;
  }

  .cookieConsentActions {
    grid-template-columns: 1fr 1fr;
  }

  .cookieConsentBtn {
    padding: 8px 10px;
    min-height: 40px;
    font-size: 11px;
  }

  .cookieConsentOption {
    padding: 9px 10px;
  }

  .cookieConsentSwitch {
    width: 38px;
    height: 22px;
  }

  .cookieConsentSwitch::after {
    width: 14px;
    height: 14px;
  }

  .cookieConsentOption.is-selected .cookieConsentSwitch::after {
    transform: translateX(16px);
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  .cookieConsentActions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Responsive Festival Page */
@media (max-width: 768px) {
  .festivalPageHeader {
    flex-direction: column;
    align-items: flex-start;
  }

  .festivalYearSelector {
    width: 100%;
    justify-content: flex-start;
  }

  .festivalToolbar {
    margin-bottom: 8px;
  }

  .festivalTimelineSection {
    flex-direction: column;
  }

  .festivalSidebar {
    width: 100%;
    max-height: 180px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .festivalTimelineContainer {
    min-height: 250px;
  }

  .festivalGanttLabels {
    width: 100px;
  }

  .festivalGanttRowName {
    max-width: 80px;
    font-size: 10px;
  }
}

/* ------------------------------------------------------------------ */
/*  Glass surface polish                                               */
/* ------------------------------------------------------------------ */

.stats article,
.filterBar,
.filterToolbar,
.filterRow.is-collapsible,
.themeButton,
.tabs,
.festivalCard,
.weekDayCard,
.eventCard,
.eventCardDateLabel,
.panel,
.timelineYearBtn,
.timelineChip,
.timelineSearch,
.timelineFavToggle,
.timelineContainer,
.timelineMonths,
.timelineMonth,
.festivalYearBtn,
.festivalFilters,
.festivalSearch,
.festivalTimelineSection,
.festivalSidebar,
.festivalZoomBtn,
.festivalTimelineContainer,
.festivalTimelineMonths,
.festivalMonthSpacer,
.festivalGanttLabels,
.festivalGanttRowLabel,
.filterDropdownPanel {
  border-color: var(--glass-line);
  background: var(--glass-surface);
  box-shadow: var(--glass-shadow);
}

.filterBar,
.filterToolbar,
.timelineContainer,
.festivalTimelineSection,
.festivalTimelineContainer,
.filterDropdownPanel {
  background: var(--glass-surface-strong);
}

.stats .statHighlight,
.weekDayCard.is-weekend,
.weekDayCard.is-today,
.modalMetaGrid,
.modalPromoterHint {
  border-color: rgba(128, 90, 213, 0.22);
  background:
    linear-gradient(135deg, rgba(128, 90, 213, 0.14), rgba(128, 90, 213, 0.04)),
    var(--glass-surface);
}

:root[data-theme="dark"] .stats .statHighlight,
:root[data-theme="dark"] .weekDayCard.is-weekend,
:root[data-theme="dark"] .weekDayCard.is-today,
:root[data-theme="dark"] .modalMetaGrid,
:root[data-theme="dark"] .modalPromoterHint {
  border-color: rgba(183, 148, 244, 0.24);
  background:
    linear-gradient(135deg, rgba(183, 148, 244, 0.16), rgba(183, 148, 244, 0.04)),
    var(--glass-surface);
}

.eventCardDateLabel {
  box-shadow: none;
  background: var(--glass-surface-soft);
}

.filterChip:not(.active),
.themeButton,
.tabs,
.viewToggleBtn:not(.active),
.filterSelect,
.sortSelect,
.viewSelect,
.eventSearchInput,
.toolbarSearchInput,
.filterDropdownTrigger,
.festivalChip:not(.active),
.organizerCityChip:not(.active),
.timelineTodayBtn,
.festivalTodayBtn,
.festivalSidebarBtn,
.topbarStat,
.topbarOnboardingBtn {
  border-color: var(--glass-line);
  background: var(--glass-surface-soft);
}

.filterDropdown.is-open .filterDropdownTrigger,
.filterDropdown.has-value .filterDropdownTrigger,
.filterChip.active,
.viewToggleBtn.active,
.festivalChip.active {
  background: var(--accent);
}

.weekDayMiniEvent,
.weekDayNoEvents,
.eventWeekday,
.timelineFavBtn,
.festivalTimelineFavBtn {
  background: var(--glass-surface-soft);
}

@supports (backdrop-filter: blur(14px)) {
  .stats article,
  .filterBar,
  .filterToolbar,
  .filterRow.is-collapsible,
  .themeButton,
  .tabs,
  .festivalCard,
  .weekDayCard,
  .eventCard,
  .eventCardDateLabel,
  .panel,
  .timelineYearBtn,
  .timelineChip,
  .timelineSearch,
  .timelineFavToggle,
  .timelineContainer,
  .timelineMonths,
  .timelineMonth,
  .festivalYearBtn,
  .festivalFilters,
  .festivalSearch,
  .festivalTimelineSection,
  .festivalSidebar,
  .festivalZoomBtn,
  .festivalTimelineContainer,
  .festivalTimelineMonths,
  .festivalMonthSpacer,
  .festivalGanttLabels,
  .festivalGanttRowLabel,
  .filterDropdownPanel,
  .filterChip:not(.active),
  .themeButton,
  .tabs,
  .viewToggleBtn:not(.active),
  .filterSelect,
  .sortSelect,
  .viewSelect,
  .eventSearchInput,
  .toolbarSearchInput,
  .filterDropdownTrigger,
  .festivalChip:not(.active),
  .organizerCityChip:not(.active),
  .timelineTodayBtn,
  .festivalTodayBtn,
  .festivalSidebarBtn,
  .topbarStat,
  .topbarOnboardingBtn {
    backdrop-filter: blur(14px) saturate(1.25);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
  }
}

@media (min-width: 768px) {
  .filterToolbar {
    position: relative;
    z-index: 120;
  }

  .filterToolbar:has(.filterDropdown.is-open),
  .filterDropdown.is-open {
    z-index: 260;
  }

  .filterDropdown.is-open .filterDropdownPanel {
    z-index: 260;
  }
}

@media (max-width: 767px) {
  main:has(.filterDropdown.is-open) {
    z-index: 999;
  }

  body:has(.filterDropdown.is-open) .privacyManageBtn {
    display: none;
  }

  .filterToolbar {
    position: relative;
    z-index: auto;
  }

  .filterDropdown.is-open .filterDropdownPanel {
    position: fixed;
    inset: auto 12px calc(0px + var(--safe-bottom)) 12px;
    width: auto;
    max-width: none;
    max-height: min(70vh, 520px);
    z-index: 999;
  }

  @supports (backdrop-filter: blur(14px)) {
    .filterToolbar {
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
  }
}

.weekDayCard,
.eventCard,
.eventCardDateLabel,
.weekDayMiniEvent,
.weekDayNoEvents {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
