﻿:root {
  color-scheme: dark;
  --bg: #060912;
  --panel: rgba(11, 16, 29, 0.78);
  --panel-strong: rgba(12, 18, 34, 0.94);
  --text: #f6f8ff;
  --muted: rgba(246, 248, 255, 0.68);
  --line: rgba(255, 255, 255, 0.14);
  --blue: #75d7ff;
  --violet: #8d6bff;
  --green: #63f0ad;
  --orange: #ffc05c;
  --danger: #ff6b7a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(117, 215, 255, 0.16), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(141, 107, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #070b16 0%, #050812 100%);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.glass-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, rgba(5, 8, 18, 0.88), rgba(5, 8, 18, 0.48));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand-icon {
  position: relative;
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(99, 240, 173, 0.95) 0 15%, transparent 16%),
    radial-gradient(circle at 50% 50%, rgba(117, 215, 255, 0.26) 0 42%, transparent 43%),
    linear-gradient(135deg, rgba(117, 215, 255, 0.95), rgba(141, 107, 255, 0.95));
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 0 30px rgba(117, 215, 255, 0.38);
  animation: logoFloat 3.2s ease-in-out infinite;
}
.brand-icon::before {
  content: "";
  position: absolute;
  inset: 0.32rem;
  border: 2px solid rgba(5, 8, 18, 0.84);
  border-radius: inherit;
}
.brand-pulse {
  position: absolute;
  inset: -0.35rem;
  border: 1px solid rgba(117, 215, 255, 0.55);
  border-radius: inherit;
  animation: markerPulse 1.9s ease-out infinite;
}

.main-nav, .header-actions, .language-dropdown, .mobile-menu, .mobile-language {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-actions {
  justify-content: flex-end;
}
.main-nav { justify-content: flex-end; }
.main-nav {
  width: fit-content;
  padding: 0.25rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}
.main-nav a, .mobile-menu a, .language-dropdown a, .mobile-language a {
  color: var(--muted);
  padding: 0.62rem 0.8rem;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}
.main-nav a:hover, .mobile-menu a:hover, .language-dropdown a:hover, .language-dropdown a.is-active, .mobile-language a:hover, .mobile-language a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.language-dropdown {
  position: relative;
}
.language-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 3.2rem;
  justify-content: center;
  padding: 0.68rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 900;
}
.language-dropdown summary::-webkit-details-marker { display: none; }
.language-dropdown summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: 0.75rem;
}
.language-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  display: grid;
  gap: 0.25rem;
  min-width: 5rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}
.language-menu a {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
}

.primary-button, .ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1rem;
  font-weight: 850;
}
.primary-button {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #06101d;
  box-shadow: 0 14px 34px rgba(117, 215, 255, 0.22);
}
.primary-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  filter: grayscale(0.25);
}
.ghost-button {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: var(--text);
}

.hamburger {
  display: none;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
}
.hamburger span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--text);
}

.mobile-menu {
  display: none;
  position: fixed;
  z-index: 850;
  top: 4.6rem;
  right: 1rem;
  left: 1rem;
  flex-direction: column;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}
.mobile-menu.is-open { display: flex; }
.mobile-language {
  justify-content: center;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.mobile-language a {
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
}

.site-footer {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 430;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 8, 18, 0.66);
  color: var(--muted);
  backdrop-filter: blur(16px);
  font-size: 0.82rem;
}
.site-footer span {
  color: var(--text);
  font-weight: 950;
}
.site-footer a:hover { color: var(--text); }

.map-screen {
  min-height: 100vh;
  padding-top: 4.9rem;
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
}

.map-panel {
  position: relative;
  z-index: 500;
  margin: 1rem;
  border-radius: 1.6rem;
  padding: 1.25rem;
  align-self: stretch;
  overflow: auto;
  max-height: calc(100vh - 6rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  width: fit-content;
  margin: 0 0 0.65rem;
  padding: 0;
  color: rgba(117, 215, 255, 0.78);
  background: transparent;
  border: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 900;
}
.eyebrow-mark {
  position: relative;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, #06101d 0 22%, transparent 23%),
    linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 0 18px rgba(117, 215, 255, 0.34);
}
.eyebrow-mark::after {
  content: "";
  position: absolute;
  inset: -0.28rem;
  border: 1px solid rgba(117, 215, 255, 0.35);
  border-radius: inherit;
  animation: markerPulse 2.2s ease-out infinite;
}

.map-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 3.55vw, 3.05rem);
  line-height: 1;
  letter-spacing: -0.055em;
}
.map-panel p {
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.55;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  margin: 1.15rem 0 0.8rem;
}
.search-box input, .form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 0.85rem 1rem;
  outline: none;
}
.search-box input:focus, .form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus {
  border-color: rgba(117, 215, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(117, 215, 255, 0.12);
}

.filter-stack {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.72rem;
}

.quick-filter-row, .city-row, .filter-row, .radius-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.quick-filter-row.compact {
  gap: 0.38rem;
}

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

.filter-drawer {
  margin: 0.1rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}
.filter-drawer summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.78rem 0.9rem;
  cursor: pointer;
  list-style: none;
}
.filter-drawer summary::-webkit-details-marker { display: none; }
.filter-drawer summary span {
  font-weight: 950;
}
.filter-drawer summary strong {
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filter-drawer summary::after {
  content: "⌄";
  justify-self: end;
  color: var(--muted);
  line-height: 0.8;
}
.filter-drawer[open] summary::after { content: "⌃"; }
.filter-groups {
  display: grid;
  gap: 0.4rem;
  padding: 0 0.9rem 0.9rem;
}
.control-label {
  margin: 0.8rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 0.58rem 0.76rem;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(117, 215, 255, 0.42);
  color: var(--text);
  background: rgba(255, 255, 255, 0.085);
}
.chip:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}
.chip:disabled:hover {
  border-color: var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}
.chip.is-active {
  color: #06101d;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(117, 215, 255, 0.18);
}
.quick-chip {
  min-height: 2.35rem;
  padding-inline: 0.85rem;
}
.category-chip {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  border-radius: 0.95rem;
  padding: 0.7rem 0.78rem;
}

.selected-card {
  display: none;
  margin-top: 1rem;
}
.selected-card.is-visible {
  display: block;
}
.empty-state {
  display: grid;
  gap: 0.4rem;
  min-height: 210px;
  place-items: center;
  text-align: center;
  padding: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.04);
}
.empty-state span { font-size: 2rem; }
.empty-state p { margin: 0; }

.event-preview, .event-page, .profile-page, .simple-page, .organize-page {
  display: grid;
  gap: 0.85rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 1rem;
  align-items: start;
}
.contact-form,
.contact-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
}
.contact-card {
  display: grid;
  gap: 0.75rem;
}
.contact-card > span {
  font-size: 2rem;
}
.contact-card strong {
  font-size: 1.15rem;
  word-break: break-word;
}
.contact-card .primary-button {
  justify-self: start;
}
.event-preview {
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.045);
}
.event-preview-image {
  height: 150px !important;
}
.event-preview img, .event-page .cover {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 1.25rem;
}
.event-preview h2, .event-page h1 { margin: 0; letter-spacing: -0.04em; }
.event-hero-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.06);
}
.event-hero-card .cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}
.event-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 18, 0.12), rgba(5, 8, 18, 0.9));
}
.event-hero-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}
.event-hero-overlay p {
  max-width: 58ch;
  margin: 0;
  color: rgba(246, 248, 255, 0.78);
}
.event-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.event-facts div,
.event-cta-card {
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
}
.event-facts span,
.event-cta-card span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}
.event-facts strong,
.event-cta-card strong {
  display: block;
  color: var(--text);
}
.event-cta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}
.event-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}
.event-card-head .eyebrow { margin: 0; }
.event-preview dl, .event-page dl, .profile-grid dl {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}
.event-preview dl div, .event-page dl div, .profile-grid dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
dt { color: var(--muted); }
dd { margin: 0; text-align: right; font-weight: 800; }
.action-row { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.status-message {
  padding: 0.85rem;
  border-radius: 1rem;
  background: rgba(99, 240, 173, 0.12);
  border: 1px solid rgba(99, 240, 173, 0.24);
}
.status-message.is-error {
  background: rgba(255, 107, 122, 0.12);
  border-color: rgba(255, 107, 122, 0.26);
}

.status-note {
  padding: 0.75rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.status-registered,
.status-published {
  background: rgba(99, 240, 173, 0.16);
  color: var(--green);
}

.status-waiting,
.status-pending,
.status-full {
  background: rgba(255, 192, 92, 0.16);
  color: var(--orange);
}

.status-cancelled,
.status-rejected {
  background: rgba(255, 107, 122, 0.16);
  color: var(--danger);
}

.status-checked_in {
  background: rgba(117, 215, 255, 0.16);
  color: var(--blue);
}

.status-finished {
  background: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.map-wrap {
  position: relative;
  min-height: calc(100vh - 4.9rem);
}
.event-map {
  position: absolute;
  inset: 0;
  background: #101827;
}
.map-count {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 420;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 900;
}

.leaflet-control-attribution { background: rgba(5, 8, 18, 0.72) !important; color: rgba(255,255,255,.75) !important; }
.leaflet-top.leaflet-left {
  top: auto;
  bottom: 1rem;
  left: 1rem;
}
.leaflet-control-zoom {
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 1rem !important;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(0,0,0,.34);
}
.leaflet-control-zoom a { background: rgba(5,8,18,.88) !important; color: var(--text) !important; border-color: var(--line) !important; }
.leaflet-control-zoom a:hover { background: rgba(26, 35, 58, 0.95) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: rgba(8, 12, 22, 0.96) !important;
  color: var(--text) !important;
  border: 1px solid rgba(255,255,255,.14);
}
.leaflet-popup-content {
  margin: 0.72rem !important;
  min-width: 220px;
}
.popup-card {
  display: grid;
  gap: 0.45rem;
}
.popup-card img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 0.9rem;
}
.popup-card strong {
  font-size: 1rem;
  line-height: 1.15;
}
.popup-card span {
  color: var(--muted);
  font-size: 0.82rem;
}
.popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.popup-actions .primary-button,
.popup-actions .ghost-button {
  min-height: 2.35rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
}

.event-marker {
  background: transparent;
  border: 0;
}
.event-marker-shell {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  min-width: 128px;
  padding: 0.34rem 0.55rem 0.34rem 0.36rem;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(7, 10, 20, 0.9);
  color: #fff;
  box-shadow: 0 0 30px color-mix(in srgb, var(--pin, var(--blue)) 48%, transparent), 0 14px 30px rgba(0,0,0,.42);
  animation: markerFloat 2.8s ease-in-out infinite;
}
.event-marker-shell::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: inherit;
  border: 1px solid var(--pin, var(--blue));
  opacity: 0.56;
  animation: markerPulse 1.8s ease-out infinite;
}
.event-marker-shell img {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--pin, var(--blue));
}
.event-marker-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}
.event-marker strong {
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  line-height: 1.05;
}
.event-marker span {
  justify-self: start;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: var(--pin, var(--blue));
  color: #06101d;
  font-size: 0.7rem;
  font-weight: 950;
}
.event-marker.is-selected .event-marker-shell {
  transform: scale(1.06);
  border-color: #fff;
  box-shadow: 0 0 0 9px rgba(117, 215, 255, .15), 0 0 44px rgba(117, 215, 255, .8);
}
@keyframes markerPulse { from { transform: scale(0.9); opacity: .62; } to { transform: scale(1.2); opacity: 0; } }
@keyframes markerFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes logoFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-1px) rotate(-5deg); } }

.route-screen {
  min-height: 100vh;
  padding: 6rem 1rem 2rem;
  display: grid;
  place-items: start center;
}
.route-shell {
  width: min(980px, 100%);
  border-radius: 1.6rem;
  padding: 1rem;
}
.event-page-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  align-items: start;
}
.event-page .cover { height: 430px; }
.profile-grid, .organize-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.profile-card, .form-card {
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-row,
.participant-row {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.booking-card,
.ticket-card {
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
}
.check-ticket-form {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  padding: 0.9rem;
  border: 1px solid rgba(117, 215, 255, 0.18);
  border-radius: 1rem;
  background: rgba(117, 215, 255, 0.055);
}
.check-ticket-form label {
  display: grid;
  gap: 0.35rem;
}
.check-ticket-form input {
  width: 100%;
}
.scanner-box {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.scanner-box video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.scanner-frame {
  position: absolute;
  inset: 22%;
  border: 2px solid rgba(117, 215, 255, 0.9);
  border-radius: 1rem;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.26), 0 0 28px rgba(117, 215, 255, 0.24);
}
.scanner-box p {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  background: rgba(5, 8, 18, 0.78);
  color: var(--text);
  font-size: 0.82rem;
}
.booking-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}
.compact-empty {
  min-height: auto;
  padding: 1rem;
}

.edit-event-form {
  padding: 0.9rem;
  border: 1px solid rgba(117, 215, 255, 0.2);
  border-radius: 1rem;
  background: rgba(117, 215, 255, 0.06);
}
.edit-event-form .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.danger-button {
  color: #ffd7dc;
  border-color: rgba(255, 107, 122, 0.35);
}
.form-grid { display: grid; gap: 0.8rem; }
.form-grid label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}
.form-grid textarea { min-height: 110px; resize: vertical; }
.form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-section {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
}
.form-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}
.form-section summary::-webkit-details-marker { display: none; }
.form-section summary span {
  color: var(--muted);
  font-size: 0.82rem;
}
.form-section summary::after {
  content: "⌄";
  color: var(--muted);
}
.form-section[open] summary::after { content: "⌃"; }
.form-section-compact {
  background: rgba(117, 215, 255, 0.055);
  border-color: rgba(117, 215, 255, 0.16);
}
.create-event-submit {
  justify-self: start;
  min-width: 13rem;
}
.form-section h3,
.form-section p {
  margin: 0;
}

.qr-panel {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}
.qr-box {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 3px;
  width: 190px;
  height: 190px;
  padding: 0.8rem;
  border-radius: 1rem;
  background: #f6fbff;
}
.qr-box span {
  border-radius: 2px;
  background: transparent;
}
.qr-box span.is-dark { background: #07101d; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  padding: 1rem;
}
.modal.is-open { display: grid; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 1.5rem;
  padding: 1rem;
}
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.35rem;
}
.auth-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.9rem 0;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.auth-tabs .is-active {
  color: #06101d;
  background: linear-gradient(135deg, var(--blue), var(--green));
}
.oauth-grid {
  display: grid;
  gap: 0.5rem;
  margin: 0.85rem 0;
}
.oauth-grid button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

[data-auth-form] .primary-button {
  position: sticky;
  bottom: 0;
  z-index: 2;
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .app-header { grid-template-columns: auto 1fr auto; }
  .map-screen { grid-template-columns: 1fr; padding-top: 4.6rem; }
  .map-wrap {
    min-height: 52vh;
    order: 1;
    margin: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  }
  .map-wrap .leaflet-top.leaflet-left {
    bottom: 0.85rem;
    left: 0.85rem;
  }
  .map-count {
    right: 0.85rem;
    bottom: 0.85rem;
    max-width: calc(100% - 5.6rem);
    padding: 0.64rem 0.8rem;
    font-size: 0.82rem;
  }
  .map-panel {
    order: 2;
    margin: 0 0.75rem 0.75rem;
    max-height: none;
    padding: 1rem;
    border-radius: 1.35rem;
  }
  .map-panel::before {
    content: "";
    display: block;
    width: 2.8rem;
    height: 0.24rem;
    margin: 0 auto 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
  }
  .search-box { grid-template-columns: minmax(0, 1fr) auto; }
  .selected-card {
    margin-top: 0.75rem;
  }
  .event-page-layout, .profile-grid, .organize-grid, .contact-grid { grid-template-columns: 1fr; }
  .event-page .cover { height: 260px; }
  .event-hero-card { min-height: 320px; }
  .event-facts { grid-template-columns: 1fr; }
  .event-cta-card { grid-template-columns: 1fr; }
  .site-footer {
    position: static;
    margin: 0.75rem;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .brand span:last-child { display: none; }
  .header-actions { gap: 0.35rem; }
  .language-dropdown summary {
    min-width: 2.85rem;
    padding: 0.6rem 0.58rem;
    font-size: 0.72rem;
  }
  .language-menu {
    right: -2.2rem;
  }
  .header-actions .ghost-button { padding: 0.62rem 0.7rem; }
  .map-wrap { min-height: 44vh; }
  .map-panel h1 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
    letter-spacing: -0.055em;
  }
  .map-panel p {
    margin: 0.48rem 0 0;
    font-size: 0.92rem;
    line-height: 1.42;
  }
  .eyebrow {
    margin-bottom: 0.45rem;
    font-size: 0.62rem;
  }
  .eyebrow-mark {
    width: 0.95rem;
    height: 0.95rem;
  }
  .map-panel > p:not(.eyebrow) {
    display: none;
  }
  .search-box {
    margin: 0.72rem 0 0.48rem;
    gap: 0.42rem;
  }
  .search-box input {
    min-width: 0;
    padding: 0.78rem 0.85rem;
  }
  .search-box .primary-button {
    padding: 0.78rem 0.85rem;
  }
  .filter-drawer summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0.72rem 0.78rem;
  }
  .filter-drawer summary strong { font-size: 0.72rem; }
  .quick-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
  }
  .quick-filter-row::-webkit-scrollbar { display: none; }
  .quick-chip {
    white-space: nowrap;
  }
  .event-preview {
    padding: 0.82rem;
    gap: 0.65rem;
  }
  .event-preview-image {
    height: 120px !important;
  }
  .event-preview dl {
    gap: 0.38rem;
  }
  .event-preview .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .event-preview .primary-button,
  .event-preview .ghost-button {
    width: 100%;
  }
  .event-marker-shell { min-width: 104px; grid-template-columns: 38px 1fr; }
  .event-marker-shell img { width: 38px; height: 38px; }
  .event-marker strong { max-width: 56px; }
  .leaflet-popup-content {
    min-width: 210px;
  }
  .popup-actions {
    grid-template-columns: 1fr;
  }
  .map-wrap .leaflet-top.leaflet-left {
    bottom: 0.72rem;
    left: 0.72rem;
  }
  .leaflet-control-zoom a {
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
  }
  .map-count {
    right: 0.72rem;
    bottom: 0.72rem;
    padding: 0.58rem 0.68rem;
    font-size: 0.76rem;
  }
  .form-grid .two, .edit-event-form .two { grid-template-columns: 1fr; }
}
