/* -------------------------------------------------------
   FONT IMPORTS
------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap");

/* -------------------------------------------------------
   ROOT VARIABLES
------------------------------------------------------- */
:root {
  --car-red: #d32f2f;
}

/* -------------------------------------------------------
   FONT FAMILIES
------------------------------------------------------- */
.logo-font {
  font-family: "Inter", system-ui, sans-serif !important;
}

/* -------------------------------------------------------
   ANIMATIONS FOR FORM IMPROVEMENTS
------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Loading spinner animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Loading overlay for map and heavy operations */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
  z-index: 4;
  backdrop-filter: blur(4px);
}

.loading-overlay.hidden {
  display: none;
}

/* Loading badge for filter updates */
.filter-update-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fca5a5;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  animation: fadeIn 0.3s ease-out;
  opacity: 1;
  transition: all 0.3s ease;
}

.filter-update-badge.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Error state styling */
.error-state {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  color: #fca5a5;
}

.error-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ef4444;
}
}

/* -------------------------------------------------------
   BUTTON SPINNER FIX
------------------------------------------------------- */
#btnSpinner.hidden {
  display: none !important;
}

/* -------------------------------------------------------
   BASE RESET & TYPOGRAPHY
------------------------------------------------------- */
html {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, sans-serif;
  background-color: #0a0a0a;
  color: #f4f4f5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, sans-serif;
  background-color: #0a0a0a;
  color: #f4f4f5;
  min-height: 100vh;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  scrollbar-gutter: stable;
  box-sizing: border-box;
}

body.modal-open {
  overflow: hidden;
}

body.map-popup-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* -------------------------------------------------------
   HERO SECTION
------------------------------------------------------- */
.hero-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100dvh;
  padding-top: calc(env(safe-area-inset-top) + 7.5rem);
  padding-bottom: calc(env(safe-area-inset-bottom) + 3rem);
  overflow: hidden;
  background: #09090b;
  z-index: 1;
}

.hero-slides,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-slides {
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-scrim {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(9, 9, 11, 0.72) 0%,
    rgba(9, 9, 11, 0.55) 36%,
    rgba(9, 9, 11, 0.78) 68%,
    rgba(9, 9, 11, 0.92) 100%
  );
}

.hero-frame {
  position: relative;
  z-index: 2;
}

.hero-copy {
  width: min(44rem, 100%);
  margin-inline: auto;
  text-align: center;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 4.4vw + 0.7rem, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.85);
}

.hero-lede {
  color: #e4e4e7;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.45;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-stats:not(.hidden),
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
}

/* A zero count stays out of layout. display:none wins over .grid / .flex. */
#footerStatsBar.hidden,
#aboutStatsRow.hidden,
#heroStats.hidden,
#footerStatesCell.hidden,
#aboutStatesCard.hidden,
#heroStatsStatesCell.hidden,
#pressStatesCard.hidden,
#pressEventsCard.hidden,
#pressFacts.hidden,
#aboutEventsCard.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  #aboutStatsRow.stats-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hero-stats {
  margin-bottom: 1.75rem;
  color: #f4f4f5;
}

/* Local scrim keeps white stat text at >= 4.5:1 even on the brightest photo. */
.hero-stats:not(.hidden) {
  width: fit-content;
  margin-inline: auto;
  padding: 0.85rem 1.4rem;
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.85);
}

.hero-stat-value {
  font-size: clamp(1.75rem, 2vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.hero-stat-label {
  margin-top: 0.35rem;
  font-size: 0.875rem;
}

.hero-actions .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.hero-bg {
  background-color: #09090b;
  background-size: cover;
  background-position: center;
  min-height: 100dvh;
  padding-top: calc(env(safe-area-inset-top) + 8rem);
  padding-bottom: env(safe-area-inset-bottom);
  position: relative;
  z-index: 1;
}

.hero-content {
  opacity: 0;
  transform: translateY(50px);
}

.hero-content.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .hero-content {
    opacity: 1;
    transform: none;
  }

  .hero-slide,
  .hero-content,
  .hero-content.animate-in {
    transition: none;
  }

  .hero-slide:not(.is-active) {
    visibility: hidden;
  }
}

.hero-content > h1 {
  transition-delay: 0.1s;
}
.hero-content > p {
  transition-delay: 0.4s;
}
.hero-content > .hero-stats {
  transition-delay: 0.7s;
}
.hero-content > .hero-actions {
  transition-delay: 1s;
}

.hero-content a {
  transition: transform 0.3s ease;
}

.hero-content a:hover {
  transform: translateY(-4px);
}

/* -------------------------------------------------------
   NAVIGATION
------------------------------------------------------- */
.nav-link {
  position: relative;
}

.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--car-red);
  transition: width 0.3s ease;
}

.nav-link:hover:after {
  width: 100%;
}

.nav-link:focus:after {
  width: 100%;
}

button.nav-link {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* Account menu sits in the header on desktop and inside the mobile drawer. */
.header-account {
  display: none;
  align-items: center;
}

@media (min-width: 768px) {
  .header-account {
    display: flex;
  }
}

.account-menu {
  position: relative;
}

.account-menu[hidden],
.account-signin[hidden],
.account-guest[hidden],
.account-member[hidden],
.account-email[hidden],
.account-admin[hidden],
.account-panel[hidden] {
  display: none !important;
}

button.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 0;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  cursor: pointer;
}

.account-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  min-width: 12rem;
  padding: 0.4rem;
  background: rgba(9, 9, 11, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  z-index: 30;
}

.account-name-full {
  margin: 0;
  padding: 0.55rem 0.75rem 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  overflow-wrap: anywhere;
}

.account-email {
  margin: 0;
  padding: 0 0.75rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a1a1aa;
  overflow-wrap: anywhere;
}

.account-panel a,
.account-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 0.75rem;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.account-panel a:hover,
.account-panel button:hover,
.account-panel a:focus,
.account-panel button:focus {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.mobile-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #a1a1aa;
}

@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

.mobile-menu-toggle {
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--car-red);
  outline-offset: 2px;
}

.mobile-menu-icon-close {
  display: none;
}

body.menu-open .mobile-menu-icon-open {
  display: none;
}

body.menu-open .mobile-menu-icon-close {
  display: inline-block;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .cta-submit-mobile {
  visibility: hidden;
  pointer-events: none;
}

#mobileMenu {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  flex-direction: column;
  background: #0c0c0e;
  color: #fafafa;
  padding: 0;
  overflow: hidden;
}

#mobileMenu:not(.hidden) {
  display: flex;
  animation: mobile-menu-in 0.22s ease;
}

.mobile-menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(env(safe-area-inset-top) + 0.75rem) 24px 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-bar img {
  height: 4rem;
  width: auto;
  object-fit: contain;
}

button.mobile-menu-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 !important;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
}

.mobile-menu-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.35rem 0 0.75rem;
}

.mobile-nav-main,
.mobile-account,
.mobile-auth-row,
.mobile-footer-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
}

.mobile-menu-rule {
  height: 1px;
  margin: 0.35rem 24px;
  background: rgba(255, 255, 255, 0.12);
}

#mobileMenu .mobile-nav-row,
#mobileMenu .mobile-auth-btn {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 24px !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fafafa;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.05rem !important;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

#mobileMenu .mobile-nav-row span {
  position: relative;
  display: inline-block;
}

#mobileMenu .mobile-nav-row.is-active span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--car-red);
}

#mobileMenu .mobile-nav-quiet {
  color: #a1a1aa;
  font-weight: 500;
}

#mobileMenu .mobile-account-email {
  margin: 0.55rem 0 0.15rem;
  padding: 0 24px;
  color: #a1a1aa;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

#mobileMenu button.account-signout {
  padding: 0 24px !important;
}

#mobileMenu .mobile-nav-row:focus-visible {
  outline: 2px solid var(--car-red);
  outline-offset: 2px;
}

#mobileMenu .mobile-auth-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

#mobileMenu .mobile-auth-filled,
#mobileMenu .mobile-auth-outline {
  justify-content: flex-start;
  background: transparent;
  border: 0;
  color: #fafafa;
  border-radius: 0;
}

#mobileMenu button.mobile-menu-close {
  padding: 0 !important;
  min-height: 44px;
  font-size: 1.35rem !important;
}

.mobile-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.mobile-auth-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.mobile-auth-filled {
  background: var(--car-red);
  color: #fff;
  border: 1px solid var(--car-red);
}

.mobile-auth-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.mobile-account {
  display: flex;
  flex-direction: column;
  margin-top: 0.35rem;
}

#mobileMenu .mobile-footer-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 24px;
  color: #a1a1aa;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

#mobileMenu .mobile-footer-links a:hover,
#mobileMenu .mobile-footer-links a:focus-visible {
  color: #fff;
}

#mobileMenu .mobile-footer-links a:focus-visible {
  outline: 2px solid var(--car-red);
  outline-offset: 2px;
}

.mobile-menu-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 24px calc(env(safe-area-inset-bottom) + 16px);
  min-height: 48px;
  border-radius: 12px;
  background: var(--car-red);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

@keyframes mobile-menu-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #mobileMenu:not(.hidden) {
    animation: none;
  }
}

header .cta-btn,
#mobileMenu .cta-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.cta-submit-desktop {
  display: none;
  align-items: center;
}

.cta-submit-mobile {
  display: inline-flex;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-submit-desktop {
    display: inline-flex;
    margin-left: 1.5rem;
  }

  .cta-submit-mobile {
    display: none;
  }
}

/* -------------------------------------------------------
   ACCESSIBILITY UTILITIES
------------------------------------------------------- */
/* Screen reader only - hide visually but announce to AT */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Show sr-only content when focused */
.sr-only.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Accessible secondary text - meets WCAG AA contrast on dark backgrounds */
.text-accessible-secondary {
  color: #a8a8b8; /* Lighter than standard zinc-500 for better contrast on dark backgrounds */
}

/* Invalid field states for accessibility */
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #ef4444 !important; /* Red border for invalid inputs */
  background-color: rgba(239, 68, 68, 0.05); /* Subtle red tint */
}

input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus {
  outline: 3px solid #ef4444;
  outline-offset: 2px;
}

/* Error message styling for visibility */
[role="alert"] {
  color: #fca5a5; /* Bright red for error messages */
  font-weight: 500;
}

/* -------------------------------------------------------
   AAA ENHANCEMENTS - HIGH CONTRAST & VISIBILITY
------------------------------------------------------- */
/* Enhanced link underlines for AAA - 3:1 contrast with adjacent colors */
a:not([class*="nav"]):not([class*="btn"]):not([class*="cta"]) {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Remove underlines from footer links */
footer a {
  text-decoration: none !important;
}

/* High contrast mode support (prefers-contrast) */
@media (prefers-contrast: more) {
  *:focus-visible {
    outline: 4px solid #d32f2f;
    outline-offset: 3px;
  }

  a {
    text-decoration-thickness: 3px;
  }

  button,
  [role="button"] {
    font-weight: 700;
  }

  [aria-invalid="true"] {
    border-width: 3px !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* AAA-level button contrast. Leaflet markers use role=button; those rules
   pulled pins off their coordinates, so the marker icons are excluded. */
button:not(.leaflet-marker-icon),
[role="button"]:not(.leaflet-marker-icon),
[type="button"]:not(.leaflet-marker-icon),
[type="submit"]:not(.leaflet-marker-icon) {
  min-height: 44px; /* Minimum touch target size for AAA */
  min-width: 44px;
  position: relative;
}

/* Better interactive element visibility */
a[href],
button:not(.leaflet-marker-icon),
[role="button"]:not(.leaflet-marker-icon),
input[type="button"],
input[type="submit"] {
  position: relative;
}

.leaflet-container .leaflet-marker-icon,
.leaflet-container .leaflet-marker-shadow {
  position: absolute !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

/* Sign-in, sign-up, and reset sit as one card. Full width on small screens.
   Auto margins center the column and collapse when it is taller than the page. */
[data-auth-page] #main.auth-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 8rem 1rem 3rem;
}

@media (min-width: 768px) {
  [data-auth-page] #main.auth-shell {
    padding-top: 9rem;
  }
}

[data-auth-page] .auth-column {
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
}

@media (min-width: 768px) {
  [data-auth-page] .auth-column {
    max-width: 36rem;
  }
}

/* -------------------------------------------------------
   FOCUS INDICATORS
------------------------------------------------------- */
*:focus-visible {
  outline: 3px solid rgba(211, 47, 47, 0.5);
  outline-offset: 2px;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: 3px solid rgba(211, 47, 47, 0.5);
  outline-offset: 2px;
}

/* -------------------------------------------------------
   CTA BUTTONS
------------------------------------------------------- */
.cta-button {
  font-weight: 600;
  border-radius: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
}

.cta-button:hover {
  transform: scale(1.02);
}

.cta-button:focus {
  outline: none;
}

.cta-primary {
  background-color: var(--car-red);
  color: white;
}

.cta-primary:hover {
  background-color: #b91c1c;
}

.cta-primary:focus {
  background-color: #b91c1c;
}

.cta-secondary {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: white;
}

.cta-secondary:hover {
  border-color: white;
}

.cta-secondary:focus {
  border-color: white;
}

/* -------------------------------------------------------
   FORM ELEMENTS
------------------------------------------------------- */
input[type="date"],
input[type="text"],
input[type="email"],
textarea,
select {
  font-size: 16px; /* Prevents zoom on iOS */
}

input[type="date"] {
  max-width: 100%;
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 1;
}

/* Validation feedback states */
input.border-emerald-500,
textarea.border-emerald-500,
select.border-emerald-500 {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  transition: all 0.2s ease;
}

input.border-red-500,
textarea.border-red-500,
select.border-red-500 {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  transition: all 0.2s ease;
}

/* -------------------------------------------------------

select[multiple] {
  background-image: linear-gradient(#18181b, #18181b);
  background-color: #18181b;
}

select[multiple] option {
  background-color: #18181b;
  color: #f4f4f5;
  padding: 6px 12px;
  margin: 4px 0;
}

select[multiple] option:checked {
  background: linear-gradient(#d32f2f, #d32f2f);
  background-color: #d32f2f;
  color: white;
}

select[multiple] option:disabled {
  opacity: 0.5;
}

/* -------------------------------------------------------
   EVENT CARDS
------------------------------------------------------- */
.event-card {
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(28, 28, 32, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color: #fafafa;
}

.event-card:hover {
  transform: none;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Every card media area is the same 4:3 frame. */
.event-card-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #18181b;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.event-card > .event-card-frame {
  width: calc(100% - 16px);
  margin: 8px 8px 0;
  border-radius: 12px;
}

.event-card-frame.skeleton {
  background: linear-gradient(90deg, #2d3748 0%, #4a5568 50%, #2d3748 100%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite linear;
}

.event-card-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  background: #09090b;
}

.event-card-frame > .event-card-photo,
.event-card-frame > .event-card-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.event-card-frame > .event-card-photo--cover {
  z-index: 1;
  object-fit: cover;
  background: #18181b;
  transition: transform 0.3s ease;
}

.group:hover .event-card-frame > .event-card-photo--cover {
  transform: scale(1.06);
}

.event-card-frame > .event-card-photo--contain {
  z-index: 2;
  object-fit: contain;
  background: transparent;
}

.event-card-frame > .event-card-blur {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  height: 140%;
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%);
  filter: blur(18px) brightness(0.38);
  z-index: 0;
  pointer-events: none;
}

.event-card-frame:has(> .event-card-blur)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 1;
  pointer-events: none;
}

.event-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2a2a30;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.045) 0 1px,
      transparent 1px 12px
    ),
    linear-gradient(165deg, #32323a 0%, #24242a 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.event-card-placeholder-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70%;
  text-align: center;
}

.event-card-placeholder-logo {
  width: 46%;
  max-width: none;
  height: auto;
  max-height: none;
}

.event-card-placeholder-caption {
  margin: 0.55rem 0 0;
  color: #a1a1aa;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.event-card-datebox {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  width: 52px;
  min-height: 52px;
  padding: 6px 0;
  border-radius: 14px;
  background: rgba(9, 9, 11, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

.event-card-datebox-month {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.event-card-datebox-day {
  margin-top: 3px;
  font-size: 20px;
  font-weight: 700;
}

/* `[type="button"]:not(.leaflet-marker-icon)` sets position:relative and
   outranks a single class. Card photos are out of flow, so that relative
   button sat on the date badge. This selector wins and pins the heart
   to the top-right of the frame. */
button.event-card-save[type="button"] {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  z-index: 5;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

button.event-card-save[type="button"].text-red-500 {
  color: #ef4444;
}

.event-card-featured-flag {
  margin-left: 0.4rem;
  color: #fafafa;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-card-location {
  display: flex;
  align-items: baseline;
  min-width: 0;
  max-width: 100%;
}

.event-card-city {
  flex: 0 0 auto;
  white-space: nowrap;
}

.event-card-venue {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card-venue::before {
  content: "\00b7";
  margin: 0 0.4rem;
}

.event-card-shade {
  z-index: 3;
}

.event-card-chrome {
  z-index: 4;
}

.card-upload-preview {
  max-width: 28rem;
  margin-inline: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-detail-hero {
  margin-bottom: 1.5rem;
  border-radius: 1rem;
}

.event-flyer-panel {
  margin-bottom: 2.5rem;
}

.event-flyer-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-flyer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.event-flyer-actions .cta-button,
.flyer-lightbox .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  font-size: 0.875rem;
}

.flyer-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000000;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1rem 1.5rem;
  box-sizing: border-box;
}

.flyer-lightbox[hidden] {
  display: none !important;
}

.flyer-lightbox-image {
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.flyer-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.flyer-lightbox-download {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

/* -------------------------------------------------------
   ABOUT SECTION
------------------------------------------------------- */
#about {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

#about.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-image-wrapper {
  overflow: hidden;
}

.about-image {
  transition: transform 0.4s ease;
}

.about-image:hover {
  transform: scale(1.05);
}

/* -------------------------------------------------------
   SKELETON LOADERS
------------------------------------------------------- */
.skeleton {
  background: linear-gradient(90deg, #2d3748 0%, #4a5568 50%, #2d3748 100%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite linear;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-line {
  height: 1rem;
  background: #4a5568;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}

.skeleton-line.short {
  width: 60%;
}
.skeleton-line.medium {
  width: 80%;
}
.skeleton-line.long {
  width: 100%;
}

/* -------------------------------------------------------
   HEADER Z-INDEX FIX (CRITICAL)
------------------------------------------------------- */
header,
#header-placeholder {
  position: relative;
  z-index: 3000000; /* Always above map + popups */
  pointer-events: auto !important;
}

/* The event dialog is a body-level sibling of the header. It has to clear
   that stacking context, start below the fixed header, and scroll inside
   itself on a short screen. */
#eventModal {
  z-index: 4000000;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding:
    calc(env(safe-area-inset-top) + 10rem)
    1rem
    calc(env(safe-area-inset-bottom) + 1rem);
  overflow: hidden;
}

@media (min-width: 768px) {
  #eventModal {
    padding-top: calc(env(safe-area-inset-top) + 12rem);
  }
}

#eventModal > .event-modal-panel {
  display: flex;
  flex-direction: column;
  width: min(42rem, 100%);
  max-height: 100%;
  min-height: 0;
  margin-inline: auto;
  overflow: hidden;
}

#eventModal #modalContent {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#eventModal > .event-modal-panel > :last-child {
  flex-shrink: 0;
}

#eventModal #carousel-image,
#eventModal .modal-flyer {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(50vh, 320px);
  margin: 0 auto;
  object-fit: contain;
  object-position: center top;
  background: transparent;
}

/* -------------------------------------------------------
   LEAFLET MAP + POPUP FIXES
------------------------------------------------------- */

/* Map container must NOT create a stacking context */
#eventMap {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: #111;
  position: relative;
  z-index: 1;
  overflow: hidden !important;
  scroll-behavior: auto;
  contain: layout style paint;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Allow popups to escape container */
.leaflet-container {
  overflow: visible !important;
  scroll-behavior: auto;
}

.leaflet-pane {
  overflow: visible !important;
}

/* Ensure popups appear above map but below header */
.leaflet-popup-pane {
  z-index: 1500000 !important;
}

/* Prevent popup content from causing scrolls */
.leaflet-popup-content {
  pointer-events: auto;
}

.leaflet-popup-content button {
  pointer-events: auto;
}

/* Ensure tiles/markers never overlap popups */
.leaflet-map-pane,
.leaflet-tile-pane,
.leaflet-overlay-pane,
.leaflet-marker-pane {
  z-index: 1000000 !important;
}

/* Popup styling */
.leaflet-popup-content-wrapper {
  background: #18181b;
  color: #f4f4f5;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-tip {
  background: #18181b;
}

.event-map-popup .leaflet-popup-content {
  margin: 0;
  padding: 0;
}

/* Enhanced Map Popup */
.map-popup {
  font-family: "Inter", system-ui, sans-serif;
}

.map-popup-header {
  padding: 12px 16px;
  border-bottom: 2px solid rgba(220, 38, 38, 0.2);
}

.map-popup-title {
  font-size: 14px;
  font-weight: 600;
  color: #f4f4f5;
  margin: 0;
  line-height: 1.3;
}

.map-popup-body {
  padding: 12px 16px;
  space-y: 8px;
}

.map-popup-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #d4d4d8;
  margin-bottom: 8px;
  line-height: 1.4;
}

.map-popup-row i {
  flex-shrink: 0;
  margin-top: 2px;
}

.map-popup-row span {
  flex: 1;
  word-break: break-word;
}

.map-popup-row:last-child {
  margin-bottom: 0;
}

.map-popup-btn {
  width: 100%;
  padding: 10px 12px;
  margin-top: 12px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-popup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.3);
}

.map-popup-btn:focus {
  outline: 3px solid #ef4444;
  outline-offset: 2px;
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.5);
}

.map-popup-btn:active {
  transform: translateY(0);
}

/* Zoom Control Animations */
@keyframes zoomHoverGlow {
  0% {
    box-shadow:
      0 10px 30px rgba(220, 38, 38, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow:
      0 16px 42px rgba(220, 38, 38, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  100% {
    box-shadow:
      0 14px 36px rgba(220, 38, 38, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
}

@keyframes pulseRed {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
  }
  50% {
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.5);
  }
}

/* Glassmorphic Zoom Controls Container */
.leaflet-control-zoom {
  background: linear-gradient(
    135deg,
    rgba(20, 20, 25, 0.9) 0%,
    rgba(10, 10, 15, 0.85) 100%
  ) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 2px solid rgba(220, 38, 38, 0.5) !important;
  border-radius: 22px !important;
  overflow: visible !important;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(220, 38, 38, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  z-index: 1400000 !important;
  pointer-events: auto !important;
  padding: 10px !important;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  animation: pulseRed 3s ease-in-out infinite !important;
}

.leaflet-control-zoom:hover {
  background: linear-gradient(
    135deg,
    rgba(30, 30, 35, 0.95) 0%,
    rgba(15, 15, 22, 0.9) 100%
  ) !important;
  border-color: rgba(220, 38, 38, 0.7) !important;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.85),
    0 0 50px rgba(220, 38, 38, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* Make zoom control container visible */
.leaflet-control-container {
  visibility: visible !important;
  z-index: 1400000 !important;
  pointer-events: auto !important;
}

.leaflet-top {
  visibility: visible !important;
  z-index: 1400000 !important;
  pointer-events: auto !important;
}

/* Enhanced Zoom Buttons */
.leaflet-control-zoom a {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  border: 2px solid rgba(252, 165, 165, 0.5) !important;
  color: white !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  border-radius: 11px !important;
  margin-bottom: 8px !important;
  box-shadow:
    0 12px 32px rgba(220, 38, 38, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  letter-spacing: 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

.leaflet-control-zoom a::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 100%
  ) !important;
  border-radius: 12px !important;
  opacity: 1 !important;
  transition: opacity 0.3s ease !important;
  pointer-events: none !important;
}

.leaflet-control-zoom a::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.2),
    transparent 70%
  ) !important;
  border-radius: 12px !important;
  pointer-events: none !important;
}

.leaflet-control-zoom a:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: #fca5a5 !important;
  color: white !important;
  box-shadow:
    0 16px 40px rgba(220, 38, 38, 0.5),
    0 0 20px rgba(220, 38, 38, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-4px) scale(1.08) !important;
  animation: zoomHoverGlow 0.5s ease-in-out !important;
}

.leaflet-control-zoom a:hover::before {
  opacity: 1 !important;
}

.leaflet-control-zoom a:focus {
  outline: 3px solid #fbbf24 !important;
  outline-offset: 3px !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
  box-shadow:
    0 16px 44px rgba(220, 38, 38, 0.6),
    0 0 24px rgba(220, 38, 38, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-4px) scale(1.08) !important;
}

.leaflet-control-zoom a:active {
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow:
    0 8px 20px rgba(220, 38, 38, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.leaflet-control-zoom a:last-child {
  margin-bottom: 0 !important;
}

.leaflet-control-zoom a.leaflet-disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  background: linear-gradient(
    135deg,
    rgba(100, 116, 139, 0.7) 0%,
    rgba(71, 85, 105, 0.65) 100%
  ) !important;
  color: #d4d4d8 !important;
  border-color: rgba(100, 116, 139, 0.3) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Attribution control */
.leaflet-control-attribution {
  background: rgba(24, 24, 27, 0.8) !important;
  color: #a1a1aa !important;
  font-size: 11px !important;
  border-radius: 8px !important;
  padding: 4px 8px !important;
}

.leaflet-control-attribution a {
  color: #d32f2f !important;
}

/* -------------------------------------------------------
   MARKER CLUSTERING STYLES
------------------------------------------------------- */
/* Cluster container base styles */
.marker-cluster {
  background: linear-gradient(135deg, #1f2937, #111827);
  border: 2px solid #dc2626;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.marker-cluster:hover {
  background: linear-gradient(135deg, #1f2937, #111827);
  border-color: #dc2626;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.marker-cluster span {
  color: white;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

/* Small cluster (2-5 events) */
.marker-cluster.marker-cluster-small {
  background: linear-gradient(135deg, #374151, #1f2937);
  border-color: #ef4444;
  width: 40px !important;
  height: 40px !important;
}

.marker-cluster.marker-cluster-small span {
  font-size: 14px;
}

/* Medium cluster (6-20 events) */
.marker-cluster.marker-cluster-medium {
  background: linear-gradient(135deg, #2d3748, #111827);
  border-color: #dc2626;
  width: 48px !important;
  height: 48px !important;
}

.marker-cluster.marker-cluster-medium span {
  font-size: 16px;
}

/* Large cluster (21+ events) */
.marker-cluster.marker-cluster-large {
  background: linear-gradient(135deg, #1f2937, #0f172a);
  border-color: #b91c1c;
  width: 56px !important;
  height: 56px !important;
  box-shadow:
    0 6px 16px rgba(220, 38, 38, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.4);
}

.marker-cluster.marker-cluster-large span {
  font-size: 18px;
}

/* Cluster accessibility */
.custom-cluster-icon[role="button"] {
  outline: 3px solid transparent;
  outline-offset: 2px;
  transition: all 0.2s ease;
}

.custom-cluster-icon[role="button"]:focus {
  outline-color: #dc2626;
}

/* Cluster tooltip styling */
.cluster-tooltip.leaflet-popup-content-wrapper {
  background: #1f2937;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
}

.cluster-tooltip .leaflet-popup-tip {
  background: #1f2937;
}

/* Featured Marker Animation */
@keyframes pulse {
  0%,
  100% {
    box-shadow:
      0 0 16px rgba(251, 191, 36, 0.4),
      0 4px 12px rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow:
      0 0 24px rgba(251, 191, 36, 0.6),
      0 6px 16px rgba(0, 0, 0, 0.5);
  }
}

.featured-marker {
  z-index: 1000 !important;
}

/* Filter Input Styling */
input[type="text"].border-white\/10:focus,
input[type="date"].border-white\/10:focus,
select.border-white\/10:focus {
  border-color: #dc2626 !important;
  background-color: #1f2937 !important;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: #dc2626 !important;
}

/* Filter Section Spacing */
.border-b.border-white\/10.space-y-3 {
  padding-bottom: 1.5rem;
  margin-bottom: 0;
}

/* -------------------------------------------------------
   MODAL ANIMATIONS
------------------------------------------------------- */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

@keyframes modalContentSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalFadeOut {
  from {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
  to {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
}

@keyframes modalContentSlideDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Modal opening state - initial state */
#eventModal.modal-opening {
  animation: modalFadeIn 0.4s ease-out forwards;
}

#eventModal.modal-opening .bg-zinc-900 {
  animation: modalContentSlideUp 0.4s ease-out 0.1s forwards;
  opacity: 0;
}

/* Modal fully open state */
#eventModal.modal-open-animated {
  opacity: 1;
  backdrop-filter: blur(4px);
}

#eventModal.modal-open-animated .bg-zinc-900 {
  opacity: 1;
  transform: translateY(0);
}

/* Modal closing state */
#eventModal.modal-closing {
  animation: modalFadeOut 0.3s ease-out forwards;
}

#eventModal.modal-closing .bg-zinc-900 {
  animation: modalContentSlideDown 0.3s ease-out forwards;
}

/* -------------------------------------------------------
   CUSTOM SCROLLBARS
------------------------------------------------------- */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #27272a #09090b;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #09090b;
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* -------------------------------------------------------
   MOBILE ADJUSTMENTS
------------------------------------------------------- */
@media (max-width: 768px) {
  #home h1 {
    font-size: 3.5rem;
    line-height: 1.1;
  }

  #home p {
    font-size: 1.25rem;
  }

  #home .gap-8 {
    gap: 1.5rem;
  }

  #home .text-4xl {
    font-size: 2.25rem;
  }

  #about .grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    max-height: 400px;
    object-fit: cover;
  }

  section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  section.account-section,
  section.public-missing,
  section.profile-private {
    padding-top: 0;
    padding-bottom: 0;
  }

  /* Map sidebar hidden on tablet */
  #eventMap {
    height: 100%;
  }

  input:not([type="date"]):not([type="checkbox"]):not([type="radio"]),
  textarea,
  select,
  button:not(.account-trigger):not(.event-card-save):not(.wizard-step):not(.event-card-open):not(.event-sheet-close):not(.event-action):not(.profile-gear):not(.profile-edit-pill):not(.profile-options-item):not(.date-picker-button):not(.upload-remove):not(.flyer-remove):not(.upload-clear):not(.garage-modal-close):not(.garage-add-tile):not(.profile-car-edit):not(.profile-car-delete):not(.garage-empty-add):not(.contact-send):not(.contact-again):not(.contact-topic-button):not(.claim-open):not(.claim-modal-close) {
    font-size: 1.125rem !important;
    padding: 1rem !important;
  }

  input[type="date"] {
    font-size: 1rem;
    padding: 1rem 0.375rem !important;
  }

  button:not(.event-card-save):not(.event-sheet-close):not(.event-action):not(.profile-gear):not(.profile-edit-pill):not(.profile-options-item):not(.date-picker-button):not(.upload-remove):not(.flyer-remove):not(.upload-clear):not(.garage-modal-close):not(.garage-add-tile):not(.profile-car-edit):not(.profile-car-delete):not(.garage-empty-add):not(.contact-send):not(.contact-again):not(.contact-topic-button):not(.claim-open):not(.claim-modal-close) {
    min-height: 3.5rem;
  }

  button.profile-tab:not(.account-trigger):not(.event-card-save):not(.wizard-step):not(.event-card-open):not(.event-sheet-close),
  button.profile-badge-button:not(.account-trigger):not(.event-card-save):not(.wizard-step):not(.event-card-open):not(.event-sheet-close),
  button.profile-action:not(.account-trigger):not(.event-card-save):not(.wizard-step):not(.event-card-open):not(.event-sheet-close) {
    min-height: 44px !important;
    padding: 0.55rem 0.9rem !important;
    font-size: 0.95rem !important;
  }

  button.wizard-step {
    min-height: 0 !important;
    padding: 0 !important;
    font-size: 0.72rem !important;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.25rem, 9vw, 3.75rem) !important;
    line-height: 1.05;
  }

  .hero-copy h1 {
    font-size: 2.35rem !important;
    line-height: 1.05 !important;
  }

  .hero-stage,
  .hero-bg {
    padding-top: calc(env(safe-area-inset-top) + 6.5rem) !important;
    min-height: 100dvh;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .cta-button {
    width: auto;
    min-width: 16rem;
  }

  /* EVENT MODAL FIXES */
  #eventModal .flex.justify-between {
    flex-direction: column;
    gap: 1rem;
  }

  #eventModal h2 {
    font-size: 2rem !important;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  #eventModal .text-3xl.font-mono {
    font-size: 1.5rem !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  #eventModal p {
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* -------------------------------------------------------
   NEW BADGE STYLES (streamlined)
------------------------------------------------------- */
@keyframes badge-glow {
  0%,
  100% {
    box-shadow: 0 0 6px rgba(220, 38, 38, 0.4);
  }
  50% {
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.6);
  }
}

.new-badge {
  background-color: rgba(220, 38, 38, 0.15);
  color: #dc2626;
  padding: 0.35rem 0.7rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid rgba(220, 38, 38, 0.3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-block;
  white-space: nowrap;
  animation: badge-glow 2s ease-in-out infinite;
}

/* -------------------------------------------------------
   EVENT DETAIL ANIMATIONS
------------------------------------------------------- */

/* Staggered content reveal */
@keyframes contentFadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Category tags entrance */
@keyframes categoryTagSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Info icons hover scale */
@keyframes iconScaleHover {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.15) rotate(5deg);
  }
  100% {
    transform: scale(1.1);
  }
}

/* Button press animation */
@keyframes buttonPress {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* Related events card slide in */
@keyframes relatedCardSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes relatedCardSlideInRight {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Skeleton loading shimmer */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Image fade in on load */
@keyframes imageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Share button ripple effect */
@keyframes ripple {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2.5);
  }
}

/* Animation delay utilities */
.delay-100 {
  animation-delay: 100ms;
}
.delay-200 {
  animation-delay: 200ms;
}
.delay-300 {
  animation-delay: 300ms;
}
.delay-400 {
  animation-delay: 400ms;
}
.delay-500 {
  animation-delay: 500ms;
}

/* Content section animations */
.modal-content-section {
  animation: contentFadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

/* Category tags */
.category-tag-animated {
  animation: categoryTagSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

/* Related events card */
.related-event-card-animated {
  animation: contentFadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

/* Info icon hover effect */
.info-icon:hover {
  animation: iconScaleHover 0.3s ease-out forwards;
}

/* Button press state */
.btn-press-animation {
  animation: buttonPress 0.4s ease-out;
}

/* Skeleton placeholder */
.skeleton-loader {
  background: linear-gradient(
    90deg,
    #18181b 0%,
    #27272a 50%,
    #18181b 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Image fade in */
.image-fade-in {
  animation: imageFadeIn 0.6s ease-out;
}

/* Share button ripple on click */
.share-btn-ripple::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(220, 38, 38, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 0.6s ease-out;
}

/* Admin dashboard */
.admin-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-main {
  min-width: 0;
  max-width: 100%;
}

.admin-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.admin-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-nav a[aria-current="page"] {
  color: #fff;
  border-color: var(--car-red);
  background: rgba(211, 47, 47, 0.16);
}

.admin-badge {
  min-width: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  line-height: 1.25rem;
  text-align: center;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-filters button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #d4d4d8;
  font-size: 0.875rem;
  cursor: pointer;
}

.admin-filters button[aria-pressed="true"] {
  color: #fff;
  border-color: var(--car-red);
}

.admin-list {
  display: flex;
  flex-direction: column;
}

.admin-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-row-open {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-row-thumb {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 0.75rem;
  background: #18181b;
  flex-shrink: 0;
}

.admin-row-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.admin-row-title {
  font-weight: 600;
  overflow-wrap: anywhere;
  min-width: 0;
}

.admin-row-meta {
  color: #a1a1aa;
  font-size: 0.8125rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.admin-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 4000;
  max-width: 22rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.admin-toast[hidden] {
  display: none;
}

.admin-toast.is-error {
  color: #f87171;
}

.admin-toast.is-ok {
  color: #6ee7b7;
}

.admin-drawer {
  margin: 0 0 0 auto;
  width: min(42rem, 100vw);
  height: 100vh;
  max-height: 100vh;
  padding: 0;
  border: 0;
  color: #f4f4f5;
  background: #09090b;
}

.admin-drawer::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.admin-drawer-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.admin-drawer-head,
.admin-tabs,
.admin-savebar {
  padding: 1rem 1.25rem;
}

.admin-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-drawer-head .min-w-0 {
  min-width: 0;
  flex: 1;
}

.admin-drawer-head .break-words {
  overflow-wrap: anywhere;
}

#eventDrawerClose {
  flex-shrink: 0;
}

.admin-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-tabs button {
  padding: 0.45rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a1a1aa;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
}

.admin-tabs button[aria-selected="true"] {
  color: #fff;
  background: rgba(211, 47, 47, 0.2);
}

.admin-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 1.25rem;
}

.admin-more {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.admin-more summary {
  cursor: pointer;
  font-weight: 600;
}

.admin-savebar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #09090b;
}

@media (min-width: 1024px) {
  .admin-shell {
    flex-direction: row;
    align-items: flex-start;
  }

  .admin-nav {
    position: sticky;
    top: 8rem;
    flex-direction: column;
    width: 13.5rem;
    overflow: visible;
  }

  .admin-nav a {
    border-radius: 0.9rem;
  }

  .admin-main {
    flex: 1;
    min-width: 0;
  }

  .admin-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .admin-row-open {
    width: auto;
    flex: 1;
  }
}

.events-view-toggle {
  display: inline-flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.events-view-toggle button {
  padding: 0.4rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #d4d4d8;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.events-view-toggle button[aria-pressed="true"] {
  background: var(--car-red);
  color: #fff;
}

.events-map-panel[hidden] {
  display: none;
}

/* Match the home map: 500px below the md breakpoint, 600px from 768px up.
   #eventMap { height: 100% } would otherwise collapse this panel. */
#eventMap.events-map-canvas,
.events-map-canvas {
  height: 500px;
  min-height: 500px;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #09090b;
}

@media (min-width: 768px) {
  #eventMap.events-map-canvas,
  .events-map-canvas {
    height: 600px;
    min-height: 600px;
  }
}

a.logo-link,
#accountDropdown a,
nav.admin-nav a,
.mobile-footer-links a {
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .admin-nav {
    gap: 0.35rem;
  }

  .admin-nav a {
    padding: 0.4rem 0.6rem;
  }

  .admin-actions button,
  .admin-filters button,
  .admin-tabs button,
  .admin-row-open,
  .admin-savebar button,
  .events-view-toggle button,
  .account-panel button,
  #mobileMenu .account-signout,
  .js-newsletter-form button {
    font-size: 0.875rem !important;
    padding: 0.45rem 0.75rem !important;
    min-height: 2.75rem;
  }
}

.js-newsletter-form {
  position: relative;
}

.js-newsletter-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.js-newsletter-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 auto;
  max-width: 36rem;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #d4d4d8;
}

.js-newsletter-form input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  padding: 0 !important;
  flex: none;
  accent-color: #dc2626;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-list details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(24, 24, 27, 0.55);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::marker {
  content: "";
}

.faq-list summary:focus-visible {
  outline: 2px solid var(--car-red);
  outline-offset: 2px;
  border-radius: 1rem;
}

.faq-list summary i {
  color: var(--car-red);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary i {
  transform: rotate(180deg);
}

.faq-list .faq-answer {
  padding: 0 1.25rem 1.1rem;
  color: #d4d4d8;
  line-height: 1.7;
}

.faq-list .faq-answer a {
  color: var(--car-red);
  text-decoration: none;
}

.faq-list .faq-answer a:hover {
  text-decoration: underline;
}

/* Admin overview. Scoped so the public pages keep their own layout. */
.overview-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  min-width: 0;
}

.overview-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.overview-toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.overview-range {
  max-width: 100%;
  background: #141416;
  color: #f4f4f5;
  color-scheme: dark;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.875rem;
}

.overview-range:focus-visible,
.overview-details:focus-visible,
.overview-show:focus-visible,
.overview-more:focus-visible {
  outline: 2px solid var(--car-red);
  outline-offset: 2px;
}

.overview-pill {
  display: inline-flex;
  align-items: center;
  margin: 0;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #141416;
  white-space: nowrap;
}

.overview-pill-pending {
  border-color: rgba(201, 146, 58, 0.85);
  color: #f3d7a1;
}

.overview-pill-upcoming {
  border-color: rgba(211, 47, 47, 0.65);
}

.overview-note,
.overview-status,
.overview-muted,
.overview-trend,
.overview-empty {
  color: #a1a1aa;
  font-size: 0.8125rem;
}

.overview-note,
.overview-status {
  margin-bottom: 0.85rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  min-width: 0;
}

.overview-banner {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem 1.1rem;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.15rem;
}

.overview-card {
  min-width: 0;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.15rem;
  padding: 1rem;
}

.overview-card-title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.overview-value {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.overview-trend,
.overview-muted,
.overview-empty {
  margin: 0.4rem 0 0;
}

.overview-spark,
.overview-line {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 0.55rem;
}

.overview-spark {
  height: 3.35rem;
}

.overview-line {
  height: 5.5rem;
}

.overview-meter {
  margin-top: 0.85rem;
  height: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.overview-meter-fill {
  display: block;
  height: 100%;
  background: #c9923a;
  border-radius: 999px;
}

.overview-status-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.overview-donut {
  width: 7.5rem;
  height: 7.5rem;
  flex: 0 0 auto;
}

.overview-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 8rem;
  min-width: 0;
}

.overview-legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.28rem 0;
  font-size: 0.8rem;
  color: #d4d4d8;
}

.overview-legend-count {
  margin-left: auto;
  color: #f4f4f5;
  font-variant-numeric: tabular-nums;
}

.overview-swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  flex: 0 0 auto;
}

.overview-swatch-approved {
  background: #6ea87a;
}

.overview-swatch-pending {
  background: #c9923a;
}

.overview-swatch-rejected {
  background: #8b8b93;
}

.overview-shows,
.overview-bars {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.overview-show {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.overview-show-date {
  color: #a1a1aa;
  font-size: 0.75rem;
}

.overview-show-title {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.overview-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 0.5rem;
  align-items: center;
  margin-top: 0.45rem;
}

.overview-bar-row[hidden] {
  display: none;
}

.overview-bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  color: #d4d4d8;
}

.overview-bar-value {
  font-size: 0.75rem;
  color: #f4f4f5;
  font-variant-numeric: tabular-nums;
}

.overview-bar-track {
  grid-column: 1 / -1;
  height: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.overview-bar-fill {
  display: block;
  height: 100%;
  background: var(--car-red);
  border-radius: 999px;
}

/* Extra states scroll inside the list so the card does not grow the row. */
.overview-bars-scroll.is-expanded,
.overview-bars-scroll.overview-bars-capped {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--car-red) rgba(255, 255, 255, 0.06);
}

.overview-bars-scroll.overview-bars-capped {
  max-height: 18.5rem;
}

.overview-bars-scroll.is-expanded::-webkit-scrollbar,
.overview-bars-scroll.overview-bars-capped::-webkit-scrollbar {
  width: 0.4rem;
}

.overview-bars-scroll.is-expanded::-webkit-scrollbar-track,
.overview-bars-scroll.overview-bars-capped::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.overview-bars-scroll.is-expanded::-webkit-scrollbar-thumb,
.overview-bars-scroll.overview-bars-capped::-webkit-scrollbar-thumb {
  background: var(--car-red);
  border-radius: 999px;
}

.overview-more {
  width: 100%;
  margin-top: 0.75rem;
  border: 1px solid rgba(211, 47, 47, 0.65);
  background: rgba(211, 47, 47, 0.08);
  color: #fff;
  border-radius: 0.8rem;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.overview-more:hover {
  background: rgba(211, 47, 47, 0.18);
}

@media (max-width: 768px) {
  button.overview-more {
    font-size: 0.875rem !important;
    padding: 0.55rem 0.8rem !important;
    min-height: 2.75rem;
  }
}

.overview-favorite-layout {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
}

.overview-favorite-photo {
  width: 7.25rem;
  height: 5.25rem;
  object-fit: cover;
  border-radius: 0.8rem;
  background: #09090b;
  flex: 0 0 auto;
}

.overview-favorite-copy {
  min-width: 0;
}

.overview-favorite-title {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.overview-details {
  width: 100%;
  margin-top: 0.9rem;
  border: 1px solid var(--car-red);
  background: transparent;
  color: #fff;
  border-radius: 0.8rem;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.overview-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: end;
  min-width: 0;
}

.overview-weekday {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.overview-weekday-track {
  width: 100%;
  height: 6.5rem;
  display: flex;
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.4rem;
  overflow: hidden;
}

.overview-weekday-fill {
  width: 100%;
  background: var(--car-red);
  border-radius: 0.35rem 0.35rem 0 0;
}

.overview-weekday-count,
.overview-weekday-label {
  font-size: 0.68rem;
  color: #a1a1aa;
}

.overview-weekday-count {
  color: #e4e4e7;
}

@media (min-width: 768px) {
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-span-2 {
    grid-column: span 2;
  }
}

@media (min-width: 1280px) {
  .overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.event-listing-disclaimer {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: #a1a1aa;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.event-listing-disclaimer--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.organizer-site-link {
  display: inline-flex;
  margin-top: 0.35rem;
  color: #f87171;
  font-size: 0.75rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Policy pages are a flex column. min-width:auto on those items keeps one
   long mailto from widening the page. Break the address itself, and let the
   shell shrink inside a 390px viewport. */
.policy-shell,
.policy-shell .prose,
.policy-shell .prose p,
.policy-shell .prose li,
.policy-shell h1,
.policy-shell h2 {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

a.break-email,
.prose a.break-email,
.policy-shell a[href^="mailto:"] {
  display: inline;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}

@media (max-width: 420px) {
  .policy-shell-outer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .policy-shell {
    padding: 1rem;
  }
}

/* -------------------------------------------------------
   DARK FROSTED GLASS
   Solid fills are the default. Blur only applies when the
   browser supports backdrop-filter. Text stays on the dark
   solid so contrast holds either way.
------------------------------------------------------- */
:root {
  --ink: #0c0c0e;
  --glass-solid: rgba(22, 22, 26, 0.78);
  --glass-line: rgba(255, 255, 255, 0.1);
  --glass-text: #fafafa;
  --glass-muted: #d4d4d8;
  --glass-tag: #f0a8a4;
}

body {
  background-color: #0c0c0e;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(211, 47, 47, 0.14), transparent 28%),
    linear-gradient(180deg, #121214 0%, #0c0c0e 42%, #101012 100%);
  background-attachment: fixed;
  color: var(--glass-text);
  font-family: "Inter", system-ui, sans-serif;
}

h1,
.wizard-title,
.overview-title,
.auth-column > h1,
.event-detail-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.text-zinc-400,
.text-zinc-500,
.overview-muted,
.overview-note,
.overview-status,
.overview-trend,
.overview-empty {
  color: var(--glass-muted);
}

.glass,
header.glass {
  background: rgba(9, 9, 11, 0.94);
  border-bottom: 1px solid var(--glass-line);
}

header a.logo-link img {
  height: 4rem;
  width: auto;
  max-width: none;
  object-fit: contain;
}

@media (min-width: 768px) {
  header a.logo-link img {
    height: 5rem;
  }
}

#main,
main#main {
  padding-top: 8rem;
}

body:has(.hero-stage) #main {
  padding-top: 0;
}

.hero-stage {
  padding-top: calc(env(safe-area-inset-top) + 7.5rem);
  background: #09090b url("/images/hero/chrome-grille-clean.webp") center 30% / cover no-repeat;
}

#mobileMenu {
  top: 0;
  background: #0c0c0e;
  color: #fafafa;
}

.hero-content {
  opacity: 1;
  transform: none;
}

.event-card-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0.85rem 1rem 1rem;
}

.event-card-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.event-card-tag {
  color: var(--glass-tag);
  background: transparent;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.event-type-mark {
  margin-right: 0.35rem;
  font-size: 0.7rem;
}

.event-card-tag[data-type="Autocross"],
.event-pill-type[data-type="Autocross"] {
  color: #d9f99d;
}

.event-card-tag[data-type="Drifting"],
.event-pill-type[data-type="Drifting"] {
  color: #fecdd3;
}

.event-card-tag[data-type="Off-Road"],
.event-pill-type[data-type="Off-Road"] {
  color: #fde68a;
}

.event-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.3em * 2);
  margin: 0 0 0.3rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--glass-muted);
  font-size: 0.875rem;
}

.event-card-when,
.event-card-location {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card-when,
.event-card-meta .event-card-location {
  margin: 0;
}

.event-card-meta .event-card-when + .event-card-location::before {
  content: "\00b7";
  margin-right: 0.35rem;
}

.event-card-price {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
}

.event-card-attendance {
  margin: 0.45rem 0 0;
  color: #bbf7d0;
  font-size: 0.75rem;
  font-weight: 600;
}

.auth-shell section,
#adminSignIn,
#adminDenied,
#profileForm,
#savedShows,
#mySubmissions,
.faq-list details,
main .bg-zinc-900\/40,
main .bg-zinc-950\/50,
.event-modal-panel {
  background: var(--glass-solid);
  border: 1px solid var(--glass-line);
  color: var(--glass-text);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.account-page {
  max-width: 40rem;
  padding-bottom: 4rem;
}

.account-title {
  margin: 0 0 0.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.account-settings.account-page {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
}

.account-settings .account-title {
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.1;
}

.account-settings .account-sections {
  margin-top: 1.5rem;
}

.account-settings .account-form .cta-button,
.account-settings .account-danger,
.account-settings .account-banner .cta-button {
  max-width: 100%;
}

@media (max-width: 480px) {
  .account-settings .account-confirm-actions {
    flex-direction: column;
  }

  .account-settings .account-confirm-actions .account-danger,
  .account-settings .account-confirm-actions .account-quiet,
  .account-settings .account-form .cta-button,
  .account-settings .account-banner .cta-button {
    width: 100%;
  }
}

.account-since {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.95rem;
}

.account-since:empty {
  display: none;
}

.account-note {
  margin: 0.75rem 0 0;
}

.account-banner {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(220, 38, 38, 0.45);
  border-radius: 1rem;
  background: rgba(220, 38, 38, 0.08);
  color: #f4f4f5;
  font-size: 0.95rem;
  line-height: 1.45;
}

.account-banner p {
  margin: 0 0 0.75rem;
}

.account-banner a {
  color: var(--car-red);
  font-weight: 650;
}

.account-banner .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.account-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.account-section {
  margin: 0;
  scroll-margin-top: 7.5rem;
}

.account-section h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 650;
  scroll-margin-top: 7.5rem;
}

.account-section-copy {
  margin: 0 0 0.75rem;
  color: #a1a1aa;
  font-size: 0.875rem;
  line-height: 1.45;
}

.account-card {
  border-radius: 1.15rem;
  padding: 0.25rem 1.15rem;
}

.account-loading,
.account-empty p,
.account-row p,
.account-row-note {
  margin: 0;
  color: #d4d4d8;
  font-size: 0.95rem;
  line-height: 1.45;
}

.account-loading {
  padding: 0.95rem 0;
  color: #a1a1aa;
}

.account-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 0 1.05rem;
}

a.account-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.account-row {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.account-row:last-child {
  border-bottom: 0;
}

.account-row a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.account-row h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.account-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.account-row-head span {
  flex: none;
  color: var(--car-red);
  font-size: 0.8125rem;
  font-weight: 650;
}

.account-row-note {
  margin-top: 0.35rem;
  color: #e4e4e7;
}

.account-form {
  margin: 0;
}

fieldset[aria-label="Filter events"],
.events-filter-panel,
.events-view-toggle {
  background: var(--glass-solid);
  border: 1px solid var(--glass-line);
  border-radius: 1.15rem;
  padding: 0.85rem;
}

.events-filter-panel {
  width: 100%;
  min-width: 0;
  min-inline-size: 0;
  box-sizing: border-box;
  margin: 0 0 1.15rem;
  padding: 0.9rem 1rem 1rem;
}

.events-view-toggle {
  display: inline-flex;
  padding: 0.25rem;
}

.events-map-canvas,
#adminPinMap {
  border: 1px solid var(--glass-line);
}

input.bg-zinc-900,
select.bg-zinc-900,
textarea.bg-zinc-900,
.wizard-field input:not([type="checkbox"]):not([type="radio"]),
.wizard-field select,
.wizard-field textarea,
.overview-range {
  background-color: rgba(12, 12, 14, 0.92);
  color: #fafafa;
  border-color: rgba(255, 255, 255, 0.28);
}

.field-hint,
.wizard-hint {
  margin: 0.4rem 0 0;
  color: var(--glass-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.fee-free {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin-top: 0.35rem;
  color: #f4f4f5;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.fee-free input {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  margin: 0;
  padding: 0;
  flex: none;
  accent-color: var(--car-red);
}

.flyer-thumb {
  position: relative;
  display: block;
  min-width: 0;
}

.flyer-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #18181b;
}

#submitForm button.flyer-remove[type="button"],
#submitForm button.upload-remove[type="button"] {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  left: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.86);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

#eventMap.leaflet-container {
  isolation: isolate;
  z-index: 0;
}

.map-frame {
  position: relative;
  z-index: 1;
  isolation: isolate;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 100%;
}

.map-location-prompt {
  position: absolute;
  z-index: 5;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  background: rgba(12, 12, 14, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f4f4f5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.map-location-prompt p,
.map-status-title,
.map-status-copy {
  margin: 0;
}

.map-location-prompt p,
.map-status-copy {
  color: #e4e4e7;
  font-size: 0.875rem;
  line-height: 1.35;
}

.map-status-title {
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.map-status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--car-red);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

#mapLoadingOverlay .text-center,
#mapEmptyState .text-center,
#mapTileError .text-center {
  max-width: 18rem;
  padding: 1rem;
}

@media (max-width: 480px) {
  .map-location-prompt {
    flex-direction: column;
    align-items: stretch;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }

  .map-status-btn {
    width: 100%;
  }
}

.wizard {
  max-width: 720px;
  margin: 0 auto 2rem;
  padding: 1.75rem 1.75rem 1.15rem;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-sizing: border-box;
}

.wizard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.wizard-save {
  color: #86efac;
  font-size: 0.8125rem;
  font-weight: 600;
}

.wizard-label,
.wizard-field label,
[data-auth-page] label {
  color: #f4f4f5;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

.wizard-page-title {
  margin: 0 0 1.15rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.wizard-title {
  margin: 1.15rem 0 1.15rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.3;
  color: #fff;
}

.wizard-progress {
  margin-bottom: 0.5rem;
}

.wizard-step-mobile {
  display: none;
  margin: 0 0 0.65rem;
  color: var(--glass-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.wizard-steps {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wizard-steps li {
  display: flex;
  align-items: flex-start;
  flex: 1 1 0;
  min-width: 0;
}

.wizard-steps li:last-child {
  flex: 0 0 auto;
}

.wizard-steps li:not(:last-child)::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  min-width: 0.45rem;
  margin: 0.8rem 0.15rem 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.wizard-steps li:has(.is-complete)::after {
  background: rgba(134, 239, 172, 0.8);
}

button.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  width: auto;
  max-width: 6.2rem;
  min-height: 0;
  min-width: 0;
  padding: 0 !important;
  border: 0;
  background: transparent;
  color: #a1a1aa;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.72rem !important;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

button.wizard-step:disabled {
  cursor: default;
  opacity: 0.72;
}

.wizard-step-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  flex: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #d4d4d8;
  font-size: 0.75rem;
  font-weight: 700;
}

button.wizard-step.is-current {
  color: #fff;
}

button.wizard-step.is-current .wizard-step-mark {
  background: var(--car-red);
  border-color: var(--car-red);
  color: #fff;
}

button.wizard-step.is-complete {
  color: #f4f4f5;
}

button.wizard-step.is-complete .wizard-step-mark {
  background: transparent;
  border-color: #86efac;
  color: #86efac;
}

.wizard-step-name {
  display: block;
  min-width: 0;
  max-width: 6rem;
  text-align: center;
  white-space: normal;
}

[hidden] {
  display: none !important;
}

.wizard-panel {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}

.wizard-field label,
.wizard-field .wizard-label {
  display: block;
  margin-bottom: 0.4rem;
}

.wizard-field input:not([type="checkbox"]):not([type="radio"]),
.wizard-field select,
.wizard-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  font: inherit;
  color: #fafafa;
  background-color: rgba(12, 12, 14, 0.92);
}

.wizard-field select option,
select.overview-range option {
  background: #161416;
  color: #fafafa;
}

.wizard-field select option:checked {
  background: #5c1f1f;
  color: #fff;
}

.wizard-field textarea {
  min-height: 8rem;
}

.wizard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.wizard-foot {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.85rem 0 calc(0.35rem + env(safe-area-inset-bottom, 0px));
  background: #141416;
  border-top: 0;
  box-shadow: none;
}

.wizard-foot .wizard-next,
.wizard-foot #submitBtn {
  flex: 2;
}

.wizard-foot .wizard-back,
.wizard-foot .wizard-cancel {
  flex: 1;
  background: transparent;
  color: #fafafa;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
}

.wizard-review {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wizard-review-block {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--glass-solid);
  border: 1px solid var(--glass-line);
}

.wizard-review-block h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.wizard-review-block button {
  min-width: 44px;
  background: transparent;
  border: 0;
  color: var(--glass-tag);
  font-weight: 650;
}

.wizard-review-block p {
  margin: 0.15rem 0;
  color: var(--glass-muted);
  font-size: 0.9rem;
}

.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.35rem;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #fafafa;
}

.upload-zone.is-dragover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(211, 47, 47, 0.75);
}

.upload-zone:focus-within {
  outline: 3px solid #ff8a80;
  outline-offset: 3px;
}

#submitForm input.upload-file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#submitForm input.upload-file:focus,
#submitForm input.upload-file:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}

#submitForm .upload-zone-hit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin: 0;
  padding: 1.35rem 1rem;
  border-radius: 12px;
  color: #fafafa;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.upload-icon svg,
button.date-picker-button svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.upload-zone-title {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
}

.upload-zone-meta,
.upload-count {
  color: #a1a1aa;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
}

.upload-count {
  margin: 0.35rem 0.5rem 0;
}

.upload-selected:not(.hidden) {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.45rem;
}

#cardUploadZone.has-selection .upload-zone-hit,
#flyersUploadZone.is-full .upload-zone-hit {
  display: none;
}

.upload-zone .card-upload-preview {
  width: 100%;
  max-width: 100%;
  margin: 0;
  aspect-ratio: 3 / 2;
}

.flyer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

button.upload-clear {
  align-self: flex-start;
  min-height: 44px;
  margin: 0 0.35rem 0.35rem;
  padding: 0.35rem 0.2rem;
  border: 0;
  background: transparent;
  color: #f0a8a4;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
}

.admin-menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass-solid);
  color: #fff;
  font-weight: 650;
}

.admin-metric-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 1.15rem;
  background: var(--glass-solid);
  border: 1px solid var(--glass-line);
}

.overview-card {
  background: var(--glass-solid);
  border: 1px solid var(--glass-line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.admin-list {
  background: #1a1a1d;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  padding: 0.35rem 1rem 0.6rem;
}

.admin-row-title {
  color: #fafafa;
  font-size: 1rem;
}

.admin-row-meta {
  color: #e4e4e7;
}

.admin-row {
  padding: 0.95rem 0;
}

nav.admin-nav {
  background: var(--glass-solid);
  border: 1px solid var(--glass-line);
  border-radius: 1.15rem;
  padding: 0.55rem;
}

nav.admin-nav a {
  color: #e4e4e7;
  border: 0;
  border-radius: 0.65rem;
  min-height: 40px;
  padding: 0.35rem 0.55rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
}

nav.admin-nav a i {
  width: 1.1rem;
  text-align: center;
  color: #a1a1aa;
  flex: none;
}

nav.admin-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
}

nav.admin-nav a[aria-current="page"] i {
  color: #fff;
}

.admin-nav-label {
  margin: 0.85rem 0.55rem 0.25rem;
  color: #a1a1aa;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-nav-tools {
  display: flex;
  justify-content: flex-end;
}

button.admin-nav-collapse,
button.admin-nav-signout {
  min-height: 36px;
  min-width: 36px;
  padding: 0.35rem 0.55rem !important;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: #d4d4d8;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8125rem !important;
  font-weight: 500;
}

.admin-nav-account {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-nav-email {
  margin: 0 0.4rem 0.25rem;
  color: #fafafa;
  font-size: 0.75rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-shell.is-collapsed nav.admin-nav {
  width: 4.25rem;
}

.admin-shell.is-collapsed .admin-nav-label,
.admin-shell.is-collapsed nav.admin-nav a span,
.admin-shell.is-collapsed .admin-nav-email,
.admin-shell.is-collapsed .admin-nav-signout {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.admin-shell.is-collapsed nav.admin-nav a {
  justify-content: center;
}

.admin-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2550;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
}

.admin-drawer-backdrop[hidden] {
  display: none !important;
}

#adminApp,
#adminApp h1,
#adminApp h2,
#adminApp h3,
#adminApp .overview-title,
#adminGate {
  font-family: "Inter", system-ui, sans-serif;
}

#adminApp .overview-value,
#adminApp .overview-delta,
#adminApp .admin-badge {
  font-variant-numeric: tabular-nums;
}

.overview-card-link {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.overview-card-link:hover,
.overview-card-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
}

.overview-delta {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.45rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.overview-delta.is-up {
  color: #86efac;
  background: rgba(22, 101, 52, 0.35);
}

.overview-delta.is-down {
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.4);
}

.overview-delta.is-flat {
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.06);
}

body:has(#adminApp) {
  background-image: linear-gradient(180deg, #121214 0%, #0e0e10 100%);
}

@media (max-width: 1023px) {
  .admin-menu-toggle {
    display: inline-flex;
  }

  nav.admin-nav {
    display: none;
    position: fixed;
    z-index: 2600;
    top: 5.4rem;
    left: 0.75rem;
    right: 0.75rem;
    max-height: calc(100vh - 6.5rem);
    overflow: auto;
    flex-direction: column;
  }

  nav.admin-nav.is-open {
    display: flex;
  }
}

@media (min-width: 1024px) {
  nav.admin-nav {
    position: sticky;
    top: 5.5rem;
    width: 14.5rem;
  }
}

@media (min-width: 720px) {
  .wizard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flyer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .glass,
  header.glass,
  .event-card,
  .event-card-datebox,
  .event-card-price,
  button.event-card-save[type="button"],
  .auth-shell section,
  #adminSignIn,
  #adminDenied,
  #profileForm,
  #savedShows,
  #mySubmissions,
  .faq-list details,
  main .bg-zinc-900\/40,
  main .bg-zinc-950\/50,
  fieldset[aria-label="Filter events"],
  .events-view-toggle,
  nav.admin-nav,
  .admin-metric-bar,
  .overview-card,
  .wizard-review-block,
  #mobileMenu {
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
  }

  .glass,
  header.glass {
    background: rgba(9, 9, 11, 0.62);
  }

  #mobileMenu {
    background: #0c0c0e;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .event-card,
  .auth-shell section,
  #adminSignIn,
  #adminDenied,
  #profileForm,
  #savedShows,
  #mySubmissions,
  .faq-list details,
  main .bg-zinc-900\/40,
  main .bg-zinc-950\/50,
  fieldset[aria-label="Filter events"],
  nav.admin-nav,
  .admin-metric-bar,
  .overview-card,
  .wizard-review-block {
    background: rgba(255, 255, 255, 0.06);
  }

  .event-card-datebox,
  .event-card-price,
  button.event-card-save[type="button"] {
    background: rgba(9, 9, 11, 0.62);
  }

  .event-modal-panel,
  .admin-list {
    background: rgba(16, 14, 15, 0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .upload-zone {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    backdrop-filter: blur(14px) saturate(120%);
  }
}

.chip-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 36px;
  min-height: 36px;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f4f4f5;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.chip:has(input:checked)::before {
  content: "\2713";
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.chip input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
}

.chip:has(input:checked) {
  background: var(--car-red);
  border-color: var(--car-red);
  color: #fff;
}

.chip:has(input:focus-visible) {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.wizard-source {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

#eventModal {
  z-index: 4000000;
}

.event-modal {
  position: fixed;
  inset: 0;
  z-index: 4000000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}

.event-modal.hidden {
  display: none !important;
}

.event-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 100%;
  background: #161618;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px 18px 0 0;
  color: #fafafa;
  overflow: hidden;
  animation: event-sheet-in 0.28s ease;
}

.event-sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0.55rem auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  flex: none;
}

button.event-sheet-close[type="button"] {
  position: absolute !important;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 !important;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 12, 14, 0.55);
  color: #fff;
  line-height: 0 !important;
  font-size: 0 !important;
  backdrop-filter: blur(10px);
}

button.event-sheet-close[type="button"] svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.event-sheet-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.event-sheet-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem calc(0.7rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #141416;
}

.event-action,
a.event-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 1 1 0;
  gap: 0.4rem;
  width: auto;
  max-width: 100%;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.7rem !important;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #fafafa;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.875rem !important;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}

.event-action i {
  flex: none;
  line-height: 1;
}

/* Phone widths keep Save, Directions, and Share on one row. */
@media (max-width: 480px) {
  .event-sheet-actions {
    gap: 0.35rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .event-action,
  a.event-action {
    flex: 1 1 auto;
    gap: 0.28rem;
    padding: 0 0.45rem !important;
    font-size: 0.8125rem !important;
  }
}

.event-action-primary {
  background: var(--car-red);
  border-color: var(--car-red);
  color: #fff;
}

.event-action-quiet {
  background: transparent;
  color: #e4e4e7;
}

.event-action.text-red-500,
.event-action.is-saved {
  color: #f0a8a4;
}

.event-detail {
  display: block;
}

.event-detail-media {
  position: relative;
  display: block;
  min-height: 0;
  background: #161618;
}

.event-carousel {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #161618;
}

.event-carousel-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.event-carousel-slide[hidden] {
  display: none !important;
}

.event-carousel-blur,
.event-carousel-photo {
  position: absolute;
  display: block;
  max-width: none;
}

.event-carousel-blur {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) brightness(0.55);
  transform: scale(1.08);
}

.event-carousel-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(50vh, 320px);
  margin: 0 auto;
  object-fit: contain;
  background: transparent;
}

button.event-carousel-nav {
  position: absolute !important;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 !important;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 12, 14, 0.55);
  color: #fff;
  transform: translateY(-50%);
}

.event-carousel-prev {
  left: 12px;
  right: auto;
}

.event-carousel-next {
  right: 12px;
  left: auto;
}

.event-carousel-count {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  z-index: 3;
  margin: 0;
  transform: translateX(-50%);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.62);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.event-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.15rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

button.event-carousel-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  min-height: 7px;
  padding: 0 !important;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

button.event-carousel-dot.is-active {
  background: #fff;
}

.event-detail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 11rem;
  padding: 1.5rem 1rem;
  background-color: #2a2a30;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.045) 0 1px,
      transparent 1px 12px
    ),
    linear-gradient(165deg, #32323a 0%, #24242a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.event-detail-placeholder .event-card-placeholder-logo,
.event-detail-placeholder-logo {
  width: 32%;
  max-width: 180px;
  height: auto;
}

.event-detail.is-plain .event-detail-media {
  display: block;
  min-height: 0;
  height: auto;
  background: transparent;
}

.event-detail-media .event-card-frame {
  flex: 1;
  width: 100%;
  min-height: 14rem;
  height: auto;
}

.event-detail-media .event-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-detail-media .event-card-frame,
.event-detail-media .event-flyer-stage {
  border-radius: 0;
}

.event-detail-main {
  padding: 1rem 1.1rem 1.25rem;
}

.event-detail-title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  padding-right: 2.5rem;
}

.event-detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.event-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #f4f4f5;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.event-detail-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0 0 1.15rem;
}

.event-detail-facts > div,
.event-detail-facts dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.event-detail-facts dt {
  color: #d4d4d8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-detail-facts dt i {
  margin-right: 0.35rem;
  color: var(--car-red);
}

.event-detail-facts dd {
  margin: 0.2rem 0 0;
  color: #fafafa;
  font-size: 0.95rem;
  line-height: 1.45;
}

.claim-listing {
  margin: 0 0 1.15rem;
}

.claim-listing a,
.claim-status,
.claim-lead {
  color: #f0a8a4;
  font-weight: 650;
}

.claim-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

.claim-form label {
  color: #d4d4d8;
  font-size: 0.8rem;
  font-weight: 600;
}

.claim-form input,
.claim-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fafafa;
  background: rgba(12, 12, 14, 0.72);
  font: inherit;
}

.claim-form textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.claim-form .claim-submit {
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--car-red);
  color: #fff;
  font-weight: 650;
}

.claim-error {
  margin: 0;
  color: #fca5a5;
  font-size: 0.85rem;
}

.claim-privacy {
  margin: 0.35rem 0 0;
  color: #a1a1aa;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
}

.claim-privacy a {
  color: #f0a8a4;
  text-decoration: underline;
}

button.claim-open[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.95rem !important;
  border-radius: 999px;
  border: 1px solid rgba(240, 168, 164, 0.45);
  background: rgba(255, 255, 255, 0.05);
  color: #f0a8a4;
  font-size: 0.9rem !important;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

button.claim-open[type="button"]:hover,
button.claim-open[type="button"]:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.claim-modal[hidden] {
  display: none !important;
}

.claim-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 5000000;
  display: grid;
  align-items: end;
  justify-content: center;
  box-sizing: border-box;
  padding:
    calc(env(safe-area-inset-top, 0px) + 0.75rem)
    0
    0;
}

.claim-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.claim-modal-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(440px, 100%);
  max-height: 90vh;
  max-height: min(92dvh, 640px);
  overflow: auto;
  box-sizing: border-box;
  margin: 0;
  padding: 1.15rem 1.15rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px 18px 0 0;
  background: rgba(22, 22, 26, 0.9);
  color: #fafafa;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}

.claim-dialog-title {
  margin: 0;
  padding-right: 2.75rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.3;
  color: #fafafa;
}

.claim-dialog-note {
  margin: 0;
  color: #d4d4d8;
  font-size: 0.92rem;
  line-height: 1.45;
}

button.claim-modal-close[type="button"] {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 !important;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 12, 14, 0.55);
  color: #fff;
  line-height: 0;
  cursor: pointer;
}

button.claim-modal-close[type="button"] svg {
  display: block;
  width: 16px;
  height: 16px;
}

.claim-modal .claim-form {
  margin: 0.35rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.claim-modal .claim-status {
  margin: 0.15rem 0 0;
}

.claim-modal .claim-submit {
  min-height: 44px;
}

@media (min-width: 640px) {
  .claim-modal:not([hidden]) {
    align-items: center;
    padding: 1.25rem;
  }

  .claim-modal-sheet {
    border-radius: 18px;
    padding-bottom: 1.15rem;
  }
}

.role-choice {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.role-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* .wizard-field label is display:block and wins over a single class, which
   stacked the radio above the copy. This selector keeps the row. */
.wizard-field label.role-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: auto;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  cursor: pointer;
  font-weight: 400;
}

.wizard-field label.role-option:has(input:checked) {
  border-color: rgba(220, 38, 38, 0.85);
  background: rgba(127, 29, 29, 0.28);
}

.role-option > span {
  flex: 1 1 auto;
  min-width: 0;
}

.role-option input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  max-width: 1.15rem;
  max-height: 1.15rem;
  margin: 0;
  padding: 0;
  flex: 0 0 1.15rem;
  border-radius: 50%;
  box-sizing: border-box;
  accent-color: var(--car-red);
}

.role-option input[type="radio"]:focus:not(:focus-visible) {
  outline: none;
}

.role-option input[type="radio"]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.role-option strong {
  display: block;
  color: #fafafa;
  font-weight: 650;
}

.role-option .wizard-hint {
  display: block;
  margin-top: 0.25rem;
}

.event-detail-map,
.event-detail-org-link,
.event-detail-copy a {
  color: #f0a8a4;
}

.event-detail-site {
  display: block;
  max-width: 100%;
  min-width: 0;
}

.event-detail .organizer-site-link {
  display: inline;
  color: #f0a8a4;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.event-detail-map {
  display: inline-block;
  margin-top: 0.25rem;
}

.event-detail-copy {
  max-width: 65ch;
}

.event-detail-copy h3,
.event-detail-calendar h3 {
  margin: 0 0 0.4rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 650;
}

.event-detail-copy p {
  margin: 0 0 0.75rem;
  color: #e4e4e7;
  font-size: 1rem;
  line-height: 1.6;
}

.event-detail-calendar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.event-detail-calendar h3 {
  flex: 1 0 100%;
}

.event-detail-calendar button {
  min-height: 40px;
  padding: 0.35rem 0.75rem !important;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #fafafa;
  font-size: 0.8125rem !important;
}

@media (max-width: 899px) {
  .event-sheet {
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 16px 16px 0 0;
  }
}

@media (min-width: 900px) {
  .event-modal {
    align-items: center;
    padding: 2rem;
  }

  .event-sheet {
    width: min(760px, 100%);
    height: auto;
    max-height: min(88vh, 860px);
    border-radius: 18px;
    animation: none;
  }

  #eventModal .event-carousel-photo {
    max-height: min(60vh, 460px);
  }

  .event-sheet-handle {
    display: none;
  }

  .event-detail,
  .event-detail.is-plain {
    display: block;
  }

  .event-detail-facts {
    grid-template-columns: 1fr 1fr;
  }

  .event-detail-title {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  section#submit {
    padding-top: 0.25rem;
    padding-bottom: 1.25rem;
  }

  [data-auth-page] #main.auth-shell {
    padding-top: 7.5rem;
  }

  [data-auth-page] .auth-column {
    margin-top: 0;
  }

  .wizard-step-mobile {
    display: none;
  }
}

@media (max-width: 480px) {
  .wizard-step-mobile {
    display: block;
  }

  .wizard-step-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .wizard-steps {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    width: 100%;
  }

  .wizard-steps li {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
  }

  .wizard-steps li:last-child {
    flex: 0 0 auto;
  }

  .wizard-steps li:not(:last-child)::after {
    content: "";
    flex: 1 1 auto;
    height: 2px;
    min-width: 0.3rem;
    margin: 0 0.12rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
  }

  .wizard-steps li:has(.is-complete)::after {
    background: rgba(134, 239, 172, 0.75);
  }

  button.wizard-step {
    flex: none;
    width: 1.7rem;
    min-width: 1.7rem;
    min-height: 44px;
    padding: 0 !important;
    justify-content: center;
  }

  .wizard-step-mark {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 640px) {
  .wizard-title,
  [data-auth-page] h1 {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
  }
}

[data-auth-page] h1,
[data-auth-page] h2,
[data-auth-page] p,
[data-auth-page] label,
[data-auth-page] input,
[data-auth-page] button,
.wizard,
.wizard-field input,
.wizard-field select,
.wizard-field textarea,
.wizard-hint,
.field-hint {
  font-family: "Inter", system-ui, sans-serif;
}

[data-auth-page] h1,
.wizard-title {
  font-family: "Playfair Display", Georgia, serif;
}

[data-auth-page] h2 {
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
}

[data-auth-page] p,
.wizard-hint,
.field-hint {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

[data-auth-page] form.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.05rem;
}

[data-auth-page] input:not([type="checkbox"]):not([type="radio"]),
[data-auth-page] select,
[data-auth-page] textarea,
.wizard-field input:not([type="checkbox"]):not([type="radio"]),
.wizard-field select,
.wizard-field textarea {
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  padding: 0.75rem 0.9rem !important;
}

@keyframes event-sheet-in {
  from {
    transform: translateY(12%);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 1023px) {
  .admin-nav-tools {
    display: none;
  }

  nav.admin-nav {
    top: 4.25rem;
    left: 0;
    right: auto;
    bottom: 0;
    width: min(18rem, 86vw);
    height: calc(100vh - 4.25rem);
    max-height: none;
    border-radius: 0 16px 16px 0;
    display: flex;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  nav.admin-nav.is-open {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-card:hover,
  .group:hover .event-card-frame > .event-card-photo--cover,
  .hero-slide,
  .hero-content,
  .wizard-panel,
  .event-sheet,
  .overview-card-link,
  nav.admin-nav {
    transform: none;
    animation: none;
    transition: none;
  }

  nav.admin-nav:not(.is-open) {
    display: none;
  }

  @media (min-width: 1024px) {
    nav.admin-nav:not(.is-open) {
      display: flex;
    }
  }
}

.wizard-field > label,
.wizard-field > .wizard-label,
[data-auth-page] .wizard-label {
  display: block;
  margin: 0 0 0.25rem;
  color: #f4f4f5;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.wizard-field > label.fee-free {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  margin: 0.35rem 0 0;
  min-height: 44px;
  cursor: pointer;
}

.wizard-field > .wizard-hint,
[data-auth-page] .wizard-hint {
  margin: 0 0 0.5rem;
  color: #a1a1aa;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
}

.wizard-field > .wizard-count {
  margin: 0.3rem 0 0;
  text-align: right;
}

.wizard .wizard-page-title {
  font-family: "Playfair Display", Georgia, serif;
}

.wizard .wizard-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 650;
}

/* Text fields are a fixed 48px tall. Radios stay out of this rule: a 48px
   box with a narrow width paints the control as a tall oval. */
.wizard-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.wizard-field select {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 0.9rem !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 46px !important;
  box-sizing: border-box;
}

.wizard-field select {
  appearance: none;
  padding-right: 2.25rem !important;
  background-color: rgba(12, 12, 14, 0.92);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23fafafa' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px 8px;
}

html:has(body[data-auth-page="submit"]) {
  --submit-header-offset: calc(env(safe-area-inset-top, 0px) + 6.5rem + 12px);
  --submit-bar-offset: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  scroll-padding-top: var(--submit-header-offset);
  scroll-padding-bottom: var(--submit-bar-offset);
}

@media (min-width: 768px) {
  html:has(body[data-auth-page="submit"]) {
    --submit-header-offset: calc(env(safe-area-inset-top, 0px) + 7.5rem + 12px);
    --submit-bar-offset: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }
}

#submit .wizard,
#submitForm,
#submitForm .wizard-grid,
#submitForm .wizard-field,
#submitForm .date-field {
  min-width: 0;
}

#submitForm {
  padding-bottom: var(--submit-bar-offset);
  scroll-padding-top: var(--submit-header-offset);
  scroll-padding-bottom: var(--submit-bar-offset);
}

#wizardStepTitle,
#submit .wizard-page-title,
#submit .wizard-field h2,
#submitForm .wizard-progress,
#submitForm .wizard-field,
#submitForm .date-field,
#submitForm .upload-zone {
  scroll-margin-top: var(--submit-header-offset);
}

#submitForm .wizard-field,
#submitForm .wizard-panel,
#submitForm .date-field,
#submitForm .upload-zone {
  scroll-margin-bottom: var(--submit-bar-offset);
}

#submitForm .date-field {
  position: relative;
  width: 100%;
  max-width: 100%;
}

#submitForm input[type="date"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: block;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
  color: #fafafa;
  padding: 0 2.75rem 0 0.9rem !important;
  line-height: normal !important;
}

#submitForm input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  min-width: 0;
}

#submitForm input[type="date"]::-webkit-datetime-edit,
#submitForm input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  min-width: 0;
  padding: 0;
}

/* iPhone Safari top-aligns the date text in a fixed-height input.
   Center the shadow value. Other browsers keep the block layout above. */
@supports (-webkit-touch-callout: none) {
  #submitForm input[type="date"] {
    display: flex;
    align-items: center;
  }

  #submitForm input[type="date"]::-webkit-date-and-time-value {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 1.2em;
    margin: 0;
    text-align: left;
  }

  #submitForm input[type="date"]::-webkit-datetime-edit,
  #submitForm input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
  }
}

#submitForm input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
  opacity: 0;
  width: 0;
  pointer-events: none;
}

#submitForm button.date-picker-button[type="button"] {
  position: absolute;
  top: 50%;
  right: 0.15rem;
  left: auto;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 !important;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fafafa;
  transform: translateY(-50%);
  cursor: pointer;
}

[data-auth-page] label.chip,
label.chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

label.chip > span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

label.chip:has(input:checked)::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  flex: none;
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 640px) {
  .wizard {
    padding: 1.15rem 1rem 0.9rem;
  }
}

button.event-card-open {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0 !important;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit !important;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

a.cta-btn:focus-visible,
a.cta-button:focus-visible,
button.cta-button:focus-visible,
.cta-primary:focus-visible,
.cta-secondary:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 3px !important;
}

@media (max-width: 480px) {
  #map {
    padding-top: 1.25rem !important;
    padding-bottom: 1.5rem !important;
  }

  #map > .max-w-screen-2xl,
  main:has(#eventsMapPanel) > .max-w-screen-2xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #map .text-center {
    margin-bottom: 0.75rem;
  }

  #map h2 {
    font-size: 1.75rem;
    line-height: 1.15;
    margin-bottom: 0.35rem;
  }

  #map p.text-xl {
    font-size: 1rem;
    line-height: 1.4;
  }

  #map .relative.w-full {
    height: 22rem;
  }

  #map .md\:hidden {
    margin-top: 0.75rem;
    gap: 0.5rem;
  }

  #eventMap.events-map-canvas,
  .events-map-canvas {
    height: 22rem;
    min-height: 22rem;
    border-radius: 1rem;
  }

  .events-view-toggle {
    margin-bottom: 0.75rem;
  }

  fieldset[aria-label="Filter events"] {
    margin-bottom: 0.85rem;
    gap: 0.65rem;
  }

  .events-filter-control input,
  .events-filter-select {
    min-width: 0;
    width: 100%;
  }
}

.filter-label {
  display: block;
  margin: 0 0 0.35rem;
  color: #f4f4f5;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.2;
}

.events-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem 0.65rem;
  align-items: end;
}

.events-filter-search {
  grid-column: 1 / -1;
}

.events-filter-field {
  min-width: 0;
}

.events-filter-control {
  position: relative;
}

.events-filter-control i {
  position: absolute;
  left: 1rem;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  color: #d4d4d8;
  font-size: 0.85rem;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

/* The <=768px rule sets padding: 1rem !important on every input and select.
   Its selector is more specific than a plain class, so the search field
   repeats those :not() checks. Otherwise the icon sits on the placeholder
   around a phone width, and the 1rem vertical padding clips the text.
   Vertical padding stays 0 and the line box fills the inner height so the
   text is centered. WebKit clips a select when line-height is a large px
   value, so those menus use a normal line box instead. */
.events-filter-control input,
.events-filter-select {
  width: 100%;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background-color: rgba(12, 12, 14, 0.92);
  color: #fafafa;
  font-family: inherit;
  font-size: 1rem !important;
  font-weight: 400;
  line-height: 46px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.events-filter-control input:not([type="date"]):not([type="checkbox"]):not([type="radio"]) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 3.35rem !important;
  padding-right: 1rem !important;
  font-size: 1rem !important;
}

.events-filter-select {
  -webkit-appearance: none;
  appearance: none;
  padding-left: 1rem !important;
  padding-right: 2.4rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23d4d4d8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6 8 10.5 12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.9rem;
}

@supports (-webkit-touch-callout: none) {
  .events-filter-select,
  .wizard-field select {
    line-height: normal !important;
  }
}

.events-filter-control input::placeholder {
  color: #a1a1aa;
}

.filter-reset {
  min-height: 48px;
  padding: 0 0.35rem !important;
  border: 0;
  background: transparent;
  color: #e4e4e7;
  font-size: 0.95rem;
  font-weight: 650;
  justify-self: start;
}

.events-active-filters:not(:empty) {
  margin-top: 0.75rem;
}

.results-count {
  margin: 0 0 0.7rem;
  color: #e4e4e7;
  font-size: 0.95rem;
  font-weight: 650;
}

@media (min-width: 768px) {
  .events-filter-row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  }

  .events-filter-search,
  .filter-reset {
    grid-column: auto;
  }

  .filter-reset {
    justify-self: end;
    padding-right: 0.15rem !important;
  }
}

@media (max-width: 480px) {
  .events-filter-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

button.event-sheet-close[type="button"]::after,
button.event-carousel-nav::after,
button.event-carousel-dot::after,
label.chip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

@media (max-width: 1023px) {
  nav.admin-nav,
  nav.admin-nav.is-open {
    background: #121214 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

.account-shell {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.account-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 44px;
}

.account-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex: none;
  accent-color: var(--car-red);
}

.account-check label {
  color: #e4e4e7;
  font-size: 0.95rem;
  line-height: 1.4;
}

.account-visibility {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.account-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 44px;
  margin: 0 0 0.35rem;
  color: #e4e4e7;
  font-size: 0.95rem;
  line-height: 1.35;
}

.account-choice input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex: none;
  accent-color: var(--car-red);
}

.account-choice strong {
  display: block;
  color: #fafafa;
  font-weight: 650;
}

.public-profile-link {
  color: var(--car-red);
  font-size: 0.95rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.account-danger,
.account-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 650;
}

.account-danger {
  background: transparent;
  border: 1px solid var(--car-red);
  color: #fecaca;
}

.account-quiet {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #f4f4f5;
}

.account-confirm {
  margin-top: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.15rem;
  background: rgba(12, 12, 14, 0.92);
}

.account-confirm p {
  margin: 0 0 0.85rem;
  color: #f4f4f5;
}

.account-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.public-profile,
.public-missing {
  max-width: 32rem;
}

.public-kicker {
  margin: 0 0 0.35rem;
  color: #a1a1aa;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-profile h1,
.public-missing h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.public-handle {
  margin: 0.55rem 0 0;
  color: var(--car-red);
  font-size: 1.05rem;
  font-weight: 650;
}

.public-since,
.public-missing p {
  margin: 0.75rem 0 0;
  color: #d4d4d8;
  font-size: 1rem;
  line-height: 1.45;
}

.public-missing .account-next {
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .account-shell {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 768px) {
  .account-choice input,
  .account-check input,
  .profile-car-share input {
    width: 1.15rem !important;
    height: 1.15rem !important;
    padding: 0 !important;
  }

  .account-danger,
  .account-quiet,
  .account-banner .cta-button {
    min-height: 44px !important;
    padding: 0.55rem 1.1rem !important;
    font-size: 0.95rem !important;
  }
}

.submit-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#turnstileWidget {
  min-height: 65px;
}

body[data-auth-page="profile"],
body[data-auth-page="public-profile"] {
  background:
    radial-gradient(70% 42% at 100% 0%, rgba(92, 18, 28, 0.55), transparent 58%),
    #09090b;
}

body[data-auth-page="profile"] #main,
body[data-auth-page="public-profile"] #main {
  padding-top: 7.25rem;
}

@media (min-width: 768px) {
  body[data-auth-page="profile"] #main,
  body[data-auth-page="public-profile"] #main {
    padding-top: 8.25rem;
  }
}

.profile-page.account-page,
.public-profile {
  max-width: 68rem;
  margin-left: auto;
  margin-right: auto;
}

.profile-private,
.public-missing {
  margin-left: auto;
  margin-right: auto;
}

.profile-stage {
  position: relative;
  margin-top: 0.35rem;
}

.profile-options-home {
  position: absolute;
  z-index: 4;
  top: 0.75rem;
  right: 0.75rem;
}

.profile-options {
  position: relative;
}

.profile-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 12, 14, 0.55);
  color: #fafafa;
  font-size: 1rem;
  line-height: 1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.profile-gear:hover,
.profile-gear[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(22, 22, 26, 0.78);
}

.profile-options-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 14.5rem;
  padding: 0.35rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 22, 0.88);
  color: #fafafa;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.profile-options-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: #fafafa;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

a.profile-options-item:not([class*="nav"]):not([class*="btn"]):not([class*="cta"]) {
  text-decoration: none;
}

.profile-options-item:hover,
.profile-options-item:focus {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.profile-edit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin-top: 0.85rem;
  min-height: 44px;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(22, 22, 26, 0.72);
  color: #fafafa;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.2;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.profile-edit-pill:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(32, 32, 36, 0.82);
}

button.profile-gear,
button.profile-edit-pill {
  min-height: 44px !important;
  font-size: 0.875rem !important;
}

button.profile-gear {
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
}

button.profile-edit-pill {
  width: auto !important;
  padding: 0.35rem 0.95rem !important;
}

.profile-gear:focus-visible,
.profile-edit-pill:focus-visible,
.profile-options-item:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.profile-bar-dock .profile-options-menu {
  right: 0;
}

.profile-cover {
  position: relative;
  height: 17rem;
  border-radius: 0 0 1.5rem 1.5rem;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(180, 35, 50, 0.38), transparent 46%),
    radial-gradient(70% 120% at 0% 100%, rgba(255, 255, 255, 0.06), transparent 42%),
    linear-gradient(180deg, #2a241f 0%, #121418 100%);
  overflow: hidden;
}

.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(9, 9, 11, 0.08) 58%,
    rgba(9, 9, 11, 0.55) 100%
  );
  pointer-events: none;
}

.profile-cover img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-car-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.profile-panel {
  position: relative;
  z-index: 1;
  margin: -3.25rem 0.15rem 0;
  background: rgba(16, 16, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.6rem;
  padding: 1.15rem 1.15rem 1.2rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.profile-id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem 1.1rem;
}

.profile-avatar {
  position: relative;
  z-index: 1;
  flex: none;
  width: 5.6rem;
  height: 5.6rem;
  margin-top: -3.4rem;
  border-radius: 999px;
  border: 3px solid #141418;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.9);
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(180, 40, 48, 0.45), transparent 55%),
    linear-gradient(160deg, #3a2a2e 0%, #1a1a1e 70%);
  color: #fafafa;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.profile-id-copy {
  flex: 1 1 14rem;
  min-width: 0;
  padding-top: 0.85rem;
}

.profile-kicker {
  margin: 0 0 0.2rem;
  color: #d4d4d8;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-id-copy h1,
.profile-private h1 {
  margin: 0;
  color: #fafafa;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.profile-handle-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin: 0.35rem 0 0;
}

.profile-handle {
  color: #f4f4f5;
  font-size: 1rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.profile-city,
.profile-id-copy .account-since,
.profile-id-copy .public-since {
  margin: 0.3rem 0 0;
  color: #d4d4d8;
  font-size: 0.95rem;
  line-height: 1.4;
}

.profile-actions,
.profile-owner-bar,
.profile-bar-dock:not(:empty) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.profile-actions {
  margin-left: auto;
  align-self: flex-end;
  padding-bottom: 0.15rem;
}

.profile-actions:empty,
.profile-bar-dock:empty {
  display: none;
}

.profile-bar-dock:not(:empty) {
  justify-content: flex-end;
  margin-bottom: 0.85rem;
}

.profile-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: transparent;
  color: #fafafa;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

a.profile-action:not([class*="nav"]):not([class*="btn"]):not([class*="cta"]) {
  text-decoration: none;
}

.profile-action:hover,
button.profile-action[aria-pressed="true"] {
  border-color: #f0a8a4;
  color: #ffffff;
}

.profile-action-primary {
  border-color: #b42332;
  background: #b42332;
  color: #ffffff;
}

.profile-action-primary:hover {
  border-color: #c73444;
  background: #c73444;
  color: #ffffff;
}

.profile-privacy-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1.35rem;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  background: #14161a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-privacy-bar p {
  margin: 0;
  color: #fafafa;
  font-size: 0.95rem;
}

.profile-privacy-note {
  margin-left: 0.35rem;
  color: #a3a8af;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.profile-pill.is-ok {
  background: rgba(52, 168, 103, 0.16);
  color: #7fd8a4;
}

.profile-pill.is-pending {
  background: rgba(214, 160, 52, 0.16);
  color: #f0c674;
}

.profile-pill.is-rejected {
  background: rgba(180, 35, 50, 0.18);
  color: #f0a8a4;
}

.profile-car-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
}

button.profile-action:focus,
a.profile-action:focus,
button.profile-badge-button:focus,
.profile-private a:focus {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

[role="tab"],
.events-view-toggle button {
  -webkit-tap-highlight-color: transparent;
}

[role="tab"]:focus:not(:focus-visible),
.events-view-toggle button:focus:not(:focus-visible) {
  outline: none;
}

[role="tab"]:focus-visible,
.events-view-toggle button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.profile-badge {
  position: relative;
  display: inline-flex;
}

.profile-badge-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(180, 35, 50, 0.55);
  background: transparent;
  color: #f1b7bd;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.profile-badge-mark {
  flex: none;
}

.profile-tip {
  position: absolute;
  z-index: 6;
  left: 0;
  top: calc(100% + 0.35rem);
  width: max-content;
  max-width: min(18rem, 72vw);
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  background: #1c1c20;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fafafa;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-align: left;
  text-transform: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
}

.profile-badge:hover .profile-tip,
.profile-badge:focus-within .profile-tip {
  opacity: 1;
  visibility: visible;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem 1.75rem;
  margin: 1rem 0 0.15rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-stats div {
  display: flex;
  flex-direction: column-reverse;
  min-width: 4.5rem;
}

.profile-stats dt {
  margin: 0;
  color: #d4d4d8;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-stats dd {
  margin: 0.15rem 0 0;
  color: #fafafa;
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.2;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 1.35rem 0 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-tab {
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #d4d4d8;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
}

.profile-tab[aria-selected="true"] {
  color: #fafafa;
  border-bottom-color: #d32f2f;
}

.profile-owner .account-sections {
  margin-top: 0.85rem;
}

.profile-garage {
  margin-top: 1.25rem;
}

.profile-garage h2 {
  margin: 0 0 0.85rem;
  color: #a1a1aa;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-garage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.profile-garage-grid[hidden] {
  display: none;
}

.profile-car {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.25rem;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.profile-car-photo,
.profile-car-fallback {
  aspect-ratio: 4 / 3;
  width: 100%;
  background:
    linear-gradient(180deg, #242428 0%, #151518 100%);
}

.profile-car-copy {
  padding: 0.85rem 1rem 1rem;
}

.profile-car h3 {
  margin: 0;
  color: #fafafa;
  font-size: 1.05rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.profile-car p {
  margin: 0.35rem 0 0;
  color: #d4d4d8;
  font-size: 0.92rem;
  line-height: 1.45;
}

.profile-car-status {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-car-status.is-pending {
  color: #e7c27a;
}

.profile-car-status.is-approved {
  color: #9dceb0;
}

.profile-car-status.is-rejected {
  color: #f0a8a4;
}

.profile-car-share {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.75rem;
  color: #fafafa;
  font-size: 0.92rem;
  line-height: 1.4;
}

.profile-car-share input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex: none;
}

.profile-car-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.profile-action-danger {
  border-color: rgba(240, 168, 164, 0.7);
  color: #f0a8a4;
}

.profile-garage-editor {
  margin-top: 1.25rem;
}

.profile-garage-editor h2,
.profile-garage-editor h3 {
  margin: 0 0 0.45rem;
  color: #fafafa;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

.profile-garage-editor h2 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

.profile-garage-editor h3 {
  font-size: 1.35rem;
}

.profile-garage-editor .account-form,
.profile-garage-editor .profile-garage-grid {
  margin-top: 1rem;
}

#garageForm.garage-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 34rem;
  margin-top: 1rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#garageFormTitle {
  margin: 0;
  color: #fafafa;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

#garageForm input.upload-file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#garageForm input.upload-file:focus,
#garageForm input.upload-file:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}

#garageForm[data-garage-mode="edit"] .garage-photo-add,
#garageForm[data-garage-mode="add"] .garage-photo-edit {
  display: none;
}

#garageForm .upload-zone-hit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 100%;
  margin: 0;
  text-align: center;
  color: #fafafa;
  font-weight: 400;
  cursor: pointer;
}

#garageForm .upload-zone-hit .upload-zone-title,
#garageForm .upload-zone-hit .upload-zone-meta {
  display: block;
  max-width: 18rem;
}

#garageUploadZone .upload-zone-hit,
#garagePhotoEmpty .upload-zone-hit {
  min-height: 11.5rem;
  padding: 1.85rem 1.15rem;
}

#garagePhotoEmpty .upload-zone-hit {
  min-height: 7.25rem;
  padding: 1.15rem 1rem;
}

#garageUploadZone,
#garagePhotoEmpty {
  border-radius: 1.25rem;
}

#garageUploadZone.is-focused,
#garagePhotoEmpty.is-focused,
#garagePhotoTile.is-focused,
#garageForm .upload-zone:focus-within {
  outline: 3px solid #ff8a80;
  outline-offset: 3px;
}

#garageUploadZone.has-selection {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.14);
}

#garageUploadZone.has-selection .upload-zone-hit {
  display: none;
}

.garage-drop-preview img,
.garage-photo-thumb img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.garage-drop-preview img {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(80% 120% at 80% 0%, rgba(180, 35, 50, 0.35), transparent 55%),
    #16161a;
}

.garage-drop-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem 0.85rem;
}

.garage-drop-preview-bar .garage-photo-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.garage-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-width: 0;
}

#garageForm[data-garage-mode="edit"] .garage-card {
  padding: 0.95rem 0.95rem 1rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
}

.garage-year-make,
.garage-fields {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-width: 0;
}

#garageForm[data-garage-mode="edit"] .garage-year-make {
  display: grid;
  grid-template-columns: minmax(6.4rem, 0.34fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

#garageForm .garage-field label,
#garageForm .garage-photo-label {
  display: block;
  margin: 0 0 0.4rem;
  color: #d4d4d8;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

.garage-caption-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.garage-caption-head label {
  margin-bottom: 0.4rem;
}

#garageCaptionCount {
  flex: none;
  color: #a1a1aa;
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

#garageForm .garage-field input {
  display: block;
  width: 100%;
  height: 3.15rem;
  min-height: 3.15rem;
  box-sizing: border-box;
  margin: 0;
  padding: 0 1rem !important;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 10, 0.92);
  color: #fafafa;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  box-shadow: none;
}

#garageForm .garage-field input::placeholder {
  color: #71717a;
  font-weight: 400;
}

#garageForm .garage-field input:focus {
  outline: none;
  border-color: rgba(211, 47, 47, 0.9);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.22);
}

#garageForm input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

#garageForm input[type="number"]::-webkit-outer-spin-button,
#garageForm input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.garage-photo-edit {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.garage-photo-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.7rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.garage-photo-thumb {
  position: relative;
  flex: none;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 0.85rem;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 80% 0%, rgba(180, 35, 50, 0.45), transparent 60%),
    #1a1a1e;
}

.garage-photo-thumb img {
  height: 100%;
}

.garage-photo-badge {
  position: absolute;
  left: 50%;
  bottom: 0.3rem;
  transform: translateX(-50%);
  max-width: calc(100% - 0.45rem);
  padding: 0.14rem 0.35rem;
  border-radius: 999px;
  background: #e4c36a;
  color: #1c1406;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.garage-photo-copy,
.garage-drop-preview-bar {
  min-width: 0;
}

.garage-photo-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
}

#garageForm .garage-photo-name {
  margin: 0;
  color: #fafafa;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#garageForm .garage-photo-note {
  margin: 0.1rem 0 0;
  color: #a1a1aa;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.35;
}

#garageForm .garage-photo-add > .garage-photo-note {
  margin-top: 0.55rem;
}

.garage-photo-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0.15rem 0 0;
}

.garage-photo-dot {
  color: #71717a;
  font-size: 0.9rem;
  line-height: 1;
}

#garageForm button.garage-link {
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0 0.1rem !important;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  box-shadow: none;
  color: #f4f4f5;
  font-size: 0.92rem !important;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

#garageForm button.garage-link-remove {
  color: #f0a8a4;
}

#garageForm button.garage-link:hover,
#garageForm button.garage-link:focus-visible {
  color: #ffffff;
}

#garageForm button.garage-link-remove:hover,
#garageForm button.garage-link-remove:focus-visible {
  color: #ffc9c4;
}

.garage-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-width: 0;
}

#garageForm[data-garage-mode="edit"] .garage-share {
  padding: 0.9rem 1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
}

.garage-share-copy {
  min-width: 0;
}

#garageForm .garage-share-title {
  margin: 0;
  color: #fafafa;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

#garageForm .garage-share-help {
  margin: 0.18rem 0 0;
  color: #a1a1aa;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.35;
}

.garage-switch {
  position: relative;
  flex: none;
  width: 3.35rem;
  height: 2rem;
}

#garageForm .garage-switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0 !important;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

#garageForm .garage-switch input:focus {
  outline: none;
}

.garage-switch-track {
  display: block;
  width: 3.35rem;
  height: 2rem;
  border-radius: 999px;
  background: #2a2a30;
  border: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.garage-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #fafafa;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
}

#garageForm .garage-switch input:checked + .garage-switch-track {
  background: var(--car-red);
  border-color: var(--car-red);
}

#garageForm .garage-switch input:checked + .garage-switch-track::after {
  transform: translateX(1.35rem);
}

#garageForm .garage-switch:focus-within .garage-switch-track {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.garage-actions {
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 0.15rem;
}

#garageForm .garage-save,
#garageForm .garage-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
}

#garageForm button.garage-save {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.75rem 1.25rem !important;
  border: 0;
  border-radius: 999px;
  background: var(--car-red);
  color: #ffffff;
  font-size: 1rem !important;
  font-weight: 650;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(211, 47, 47, 0.38);
}

#garageForm button.garage-save:hover,
#garageForm button.garage-save:focus-visible {
  background: #c62828;
}

#garageForm button.garage-save:disabled {
  opacity: 0.6;
  cursor: wait;
}

#garageForm[data-garage-mode="add"] .garage-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0.75rem;
}

#garageForm[data-garage-mode="add"] button.garage-cancel,
#garageForm[data-garage-mode="add"] button.garage-save {
  width: 100%;
  min-height: 3.15rem;
}

#garageForm[data-garage-mode="add"] button.garage-cancel {
  padding: 0.7rem 1rem !important;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(16, 16, 18, 0.9);
  box-shadow: none;
  color: #f4f4f5;
  font-size: 1rem !important;
  font-weight: 600;
}

#garageForm[data-garage-mode="add"] button.garage-cancel:hover,
#garageForm[data-garage-mode="add"] button.garage-cancel:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  background: rgba(16, 16, 18, 0.9);
}

#garageForm[data-garage-mode="edit"] .garage-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.25rem;
  padding: 0.85rem 0 calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(9, 9, 11, 0), #09090b 42%);
}

#garageForm[data-garage-mode="edit"] button.garage-cancel,
#garageForm[data-garage-mode="edit"] button.garage-save {
  width: 100%;
  min-height: 3.15rem;
}

#garageForm[data-garage-mode="edit"] button.garage-cancel {
  padding: 0.7rem 1rem !important;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(16, 16, 18, 0.9);
  box-shadow: none;
  color: #f4f4f5;
  font-size: 1rem !important;
  font-weight: 600;
}

#garageForm[data-garage-mode="edit"] button.garage-cancel:hover,
#garageForm[data-garage-mode="edit"] button.garage-cancel:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

@media (max-width: 800px) {
  #garageForm[data-garage-mode="edit"] {
    padding-bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px));
  }

  #garageForm[data-garage-mode="edit"] .garage-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    margin: 0;
    padding: 0.85rem 1.15rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(9, 9, 11, 0) 0%, rgba(9, 9, 11, 0.92) 28%, #09090b 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .garage-switch-track,
  .garage-switch-track::after {
    transition: none;
  }
}

.profile-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-private {
  max-width: 32rem;
  padding: 1.5rem 0 2rem;
  text-align: center;
}

.profile-private .account-next,
.public-missing .account-next {
  margin-top: 1.25rem;
}

#profilePage[data-preview="public"] #profileKicker {
  display: none;
}

@media (min-width: 768px) {
  .profile-cover {
    height: 22rem;
  }

  .profile-panel {
    margin-top: -3.75rem;
    padding: 1.4rem 1.6rem 1.35rem;
  }

  .profile-avatar {
    width: 7rem;
    height: 7rem;
  }

  .profile-garage-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 799px) {
  .profile-id-row {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-actions {
    margin-left: 0;
    width: 100%;
    padding-bottom: 0;
  }

  .profile-owner-bar,
  .profile-action {
    width: 100%;
  }

  .profile-tip {
    left: auto;
    right: 0;
  }
}

@media (max-width: 640px) {
  .profile-id-copy h1,
  .profile-private h1,
  .public-missing h1 {
    font-size: clamp(1.85rem, 8vw, 2.45rem) !important;
    line-height: 1.12 !important;
  }
}

.profile-id-copy h1 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
}

.profile-id-copy .profile-stats {
  margin: 0.95rem 0 0;
  padding: 0;
  border-top: 0;
  gap: 1.15rem 1.6rem;
}

.profile-owner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.profile-owner-actions .profile-edit-pill {
  margin-top: 0;
}

.profile-public-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 44px;
  margin: 0;
  padding: 0.3rem 0.7rem 0.3rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(18, 18, 22, 0.4);
  color: #fafafa;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

.profile-switch {
  position: relative;
  flex: none;
  width: 2.7rem;
  height: 1.55rem;
}

.profile-switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0 !important;
  opacity: 0;
  cursor: pointer;
}

.profile-switch .garage-switch-track {
  width: 2.7rem;
  height: 1.55rem;
}

.profile-switch .garage-switch-track::after {
  width: 1.15rem;
  height: 1.15rem;
  top: 2px;
  left: 2px;
}

.profile-switch input:checked + .garage-switch-track {
  background: #f4f4f5;
  border-color: #f4f4f5;
}

.profile-switch input:checked + .garage-switch-track::after {
  transform: translateX(1.1rem);
  background: #18181b;
}

.profile-switch:focus-within .garage-switch-track {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.profile-preview-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.profile-preview-bar[hidden] {
  display: none;
}

.profile-car-media {
  position: relative;
}

.profile-car-media .profile-pill {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  font-size: 0.66rem;
  background: rgba(10, 12, 12, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

button.profile-car-edit,
button.profile-car-delete {
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0.2rem 0.1rem !important;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #e4e4e7;
  font-size: 0.92rem !important;
  font-weight: 650;
  line-height: 1.2;
}

button.profile-car-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

button.profile-car-delete {
  margin-left: auto;
  color: #a1a1aa;
  font-weight: 500;
}

button.profile-car-edit:hover,
button.profile-car-delete:hover {
  color: #ffffff;
}

.profile-car-actions {
  align-items: center;
}

.garage-add-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  min-height: 100%;
  padding: 1.25rem 0.8rem !important;
  border-radius: 1.25rem;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.02);
  color: #fafafa;
  font-size: 0.98rem !important;
  font-weight: 650;
  cursor: pointer;
}

.garage-add-plus {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  margin-bottom: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fafafa;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
}

.garage-add-label {
  font-weight: 650;
}

.garage-add-hint,
.garage-empty p {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.84rem;
  font-weight: 450;
  line-height: 1.4;
}

.garage-empty[hidden] {
  display: none;
}

.garage-empty:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding: 2.3rem 1.2rem 1.7rem;
  border-radius: 1.35rem;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.02);
}

.garage-empty h3 {
  margin: 0.4rem 0 0;
  color: #fafafa;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 700;
}

button.garage-empty-add {
  margin-top: 0.75rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem !important;
  border: 0;
  border-radius: 999px;
  background: var(--car-red);
  color: #ffffff;
  font-size: 0.98rem !important;
  font-weight: 650;
  box-shadow: 0 10px 24px rgba(211, 47, 47, 0.35);
  cursor: pointer;
}

.garage-modal[hidden] {
  display: none !important;
}

.garage-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 6000;
  box-sizing: border-box;
  display: grid;
  align-items: center;
  justify-content: center;
  padding:
    calc(env(safe-area-inset-top) + 7.5rem)
    1.25rem
    calc(env(safe-area-inset-bottom) + 1.25rem);
  overflow: hidden;
}

.garage-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.garage-modal-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(600px, 100%);
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 1.15rem 1.25rem 1rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 22, 26, 0.9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

button.garage-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 !important;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fafafa;
  font-size: 1.6rem !important;
  line-height: 1;
  cursor: pointer;
}

.garage-modal #garageForm {
  max-width: none;
  min-height: 0;
  flex: 1 1 auto;
  margin-top: 0;
  overflow: hidden;
}

.garage-form-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.garage-modal #garageFormTitle {
  flex: none;
  margin: 0;
  padding: 0.1rem 2.75rem 0.15rem 0;
}

.garage-modal #garageForm[data-garage-mode="edit"] {
  padding-bottom: 0;
}

.garage-modal #garageForm .garage-actions {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  flex: none;
  margin: 0;
  padding: 0.15rem 0 0;
  background: none;
}

@media (max-width: 799px) {
  .garage-modal #garageForm.garage-form,
  .garage-modal #garageForm .garage-card {
    gap: 0.55rem;
  }

  .garage-modal #garageUploadZone .upload-zone-hit {
    min-height: 5.6rem;
    padding: 0.75rem 1rem;
  }

  .garage-modal #garageFormTitle {
    font-size: 1.65rem;
  }
}

body.garage-modal-open {
  overflow: hidden;
}

#saved-shows {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.saved-shows-kicker {
  margin: 0 0 0.45rem;
  color: #a1a1aa;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.saved-show-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

a.saved-show:not([class*="nav"]):not([class*="btn"]):not([class*="cta"]) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.75rem;
  border-radius: 1rem;
  color: inherit;
  text-decoration: none;
}

a.saved-show:hover {
  background: rgba(255, 255, 255, 0.04);
}

.saved-show-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.saved-show-date span {
  color: #a1a1aa;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.saved-show-date strong {
  color: #fafafa;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.1;
}

.saved-show-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.15rem;
}

.saved-show-title {
  color: #fafafa;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.saved-show-place {
  color: #a1a1aa;
  font-size: 0.88rem;
  line-height: 1.35;
}

.saved-show-thumb,
.saved-show-thumb-empty {
  width: 4.6rem;
  height: 3.15rem;
  border-radius: 0.55rem;
  object-fit: cover;
  background: #1c1c22;
}

.saved-shows-past {
  margin-top: 0.85rem;
}

.saved-shows-past summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0.35rem 0.15rem;
  color: #e4e4e7;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.saved-shows-past summary::-webkit-details-marker {
  display: none;
}

.saved-shows-past summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #a1a1aa;
  border-bottom: 2px solid #a1a1aa;
  transform: rotate(45deg);
}

.saved-shows-past[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.3rem;
}

.saved-shows-past .saved-show-list {
  padding-bottom: 0.4rem;
}

.profile-privacy-bar {
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  background: rgba(18, 18, 22, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

a.profile-settings-btn:not([class*="nav"]):not([class*="cta"]) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fafafa;
  font-weight: 650;
  text-decoration: none;
}

a.profile-settings-btn:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.profile-private:not([hidden]) {
  display: grid;
  place-items: center;
  max-width: none;
  min-height: 52vh;
  padding: 2.5rem 0.5rem 3rem;
}

.profile-private-card {
  width: min(100%, 26rem);
  margin: 0 auto;
  padding: 2.3rem 1.4rem 1.6rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 24, 0.78);
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.profile-private-lock {
  display: inline-grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fafafa;
}

.profile-private-card h1 {
  font-size: clamp(1.55rem, 3vw, 1.9rem) !important;
  line-height: 1.15 !important;
}

.profile-private-card p {
  margin: 0.55rem 0 1.15rem;
  color: #a1a1aa;
  font-size: 0.98rem;
}

a.profile-private-back:not([class*="nav"]):not([class*="btn"]):not([class*="cta"]) {
  color: #fafafa;
  font-weight: 650;
  text-decoration: none;
}

@media (min-width: 768px) {
  .garage-modal:not([hidden]) {
    padding-top: calc(env(safe-area-inset-top) + 8.75rem);
  }
}

@media (min-width: 800px) {
  .profile-panel {
    margin-top: -4.25rem;
    padding: 1.35rem 1.5rem 1.3rem;
  }

  .profile-id-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.4rem 1.25rem;
  }

  .profile-avatar {
    width: 6.4rem;
    height: 6.4rem;
    margin-top: -3.8rem;
  }

  .profile-owner-actions {
    align-self: center;
    padding-top: 0.4rem;
  }

  .profile-cover {
    height: 26rem;
  }
}

@media (max-width: 799px) {
  .profile-tabs {
    flex-wrap: nowrap;
    gap: 0;
  }

  .profile-tab {
    padding: 0.55rem 0.55rem;
    font-size: 0.88rem;
  }

  .profile-public-toggle {
    gap: 0.4rem;
    padding-left: 0.7rem;
    font-size: 0.8rem;
  }

  .profile-owner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .profile-public-toggle,
  .profile-owner-actions .profile-edit-pill {
    width: 100%;
    justify-content: center;
  }

  .profile-public-toggle {
    justify-content: space-between;
  }

  .garage-modal:not([hidden]) {
    align-items: end;
    padding:
      calc(env(safe-area-inset-top) + 6.75rem)
      0
      0;
  }

  .garage-modal-sheet {
    width: 100%;
    max-height: 100%;
    border-radius: 1.45rem 1.45rem 0 0;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .garage-modal-sheet::before {
    content: "";
    display: block;
    width: 2.6rem;
    height: 0.28rem;
    margin: 0.1rem auto 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
  }
}

@media (max-width: 640px) {
  .profile-id-copy h1 {
    font-size: 1.85rem !important;
  }
}

.contact-card {
  background: rgba(16, 16, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.contact-form {
  color-scheme: dark;
}

.contact-form p,
.prose .contact-form p {
  margin-top: 0;
  margin-bottom: 0;
}

.contact-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #e4e4e7;
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-field {
  width: 100%;
  box-sizing: border-box;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(9, 9, 11, 0.72);
  color: #fafafa;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

textarea.contact-field {
  min-height: 9rem;
  resize: vertical;
}

.contact-field::placeholder {
  color: #a1a1aa;
}

.contact-field:focus {
  border-color: rgba(211, 47, 47, 0.9);
}

.contact-field:-webkit-autofill {
  -webkit-text-fill-color: #fafafa;
  caret-color: #fafafa;
  box-shadow: 0 0 0 1000px #09090b inset;
}

.contact-error {
  margin: 0.35rem 0 0;
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 600;
}

.contact-message-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.contact-count {
  margin: 0 0 0 auto;
  color: #a1a1aa;
  font-size: 0.8rem;
}

.contact-hint {
  margin: 0 0 0.65rem;
  color: #d4d4d8;
  font-size: 0.95rem;
}

.contact-check {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 4.5rem;
  text-align: center;
}

.contact-check .contact-hint {
  text-align: center;
}

#contactTurnstile {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 65px;
}

.contact-topic {
  position: relative;
}

.contact-topic-custom {
  display: none;
  position: relative;
}

.contact-topic.is-ready .contact-topic-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-topic.is-ready .contact-topic-custom {
  display: block;
}

@media (max-width: 640px) and (pointer: coarse) {
  .contact-topic.is-ready .contact-topic-native {
    position: static;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0.85rem 1rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .contact-topic.is-ready .contact-topic-custom {
    display: none;
  }
}

button.contact-topic-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(9, 9, 11, 0.72);
  color: #fafafa;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

button.contact-topic-button:hover,
.contact-topic-custom.is-open button.contact-topic-button {
  border-color: rgba(255, 255, 255, 0.28);
}

button.contact-topic-button:focus:not(:focus-visible) {
  outline: none;
}

button.contact-topic-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

button.contact-topic-button[aria-invalid="true"] {
  border-color: #ef4444;
}

.contact-topic-chevron {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  transition: transform 0.15s ease;
}

.contact-topic-custom.is-open .contact-topic-chevron {
  transform: rotate(180deg);
}

.contact-topic-menu {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 22, 0.88);
  color: #fafafa;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contact-topic-menu[hidden] {
  display: none;
}

.contact-topic-option {
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  cursor: pointer;
}

.contact-topic-option:hover,
.contact-topic-option.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.contact-topic-option[aria-selected="true"] {
  background: rgba(211, 47, 47, 0.22);
}

.contact-failure {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
}

.contact-submit {
  display: flex;
  justify-content: center;
}

button.contact-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 15rem;
  min-height: 3.25rem;
  padding: 0.85rem 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--car-red);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
}

button.contact-send:hover {
  background: #b42332;
}

button.contact-send:disabled {
  opacity: 0.65;
  cursor: progress;
}

.contact-success {
  margin-top: 1.5rem;
  padding: 2rem 1.25rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(6, 78, 59, 0.35);
  text-align: center;
}

.contact-success h3 {
  margin: 0.35rem 0 0;
  color: #a7f3d0;
  font-size: 1.5rem;
}

.contact-success p {
  margin: 0.75rem 0 0;
  color: #d1fae5;
}

.contact-success-icon {
  color: #34d399;
  font-size: 2.5rem;
}

button.contact-again {
  min-width: 0;
  margin-top: 1rem;
  padding: 0.35rem 0.2rem;
  border: 0;
  background: transparent;
  color: #6ee7b7;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .contact-field,
  textarea.contact-field,
  select.contact-field {
    font-size: 1rem !important;
    padding: 0.85rem 1rem !important;
  }

  button.contact-send {
    width: 100%;
  }
}
