* {
  box-sizing: border-box;
}

.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;
}

:root {
  color-scheme: light;
  --bg: #eef7f6;
  --card: #ffffff;
  --text: #12303a;
  --muted: #47646d;
  --border: #cfe2e6;
  --primary: #0f9d8f;
  --primary-soft: #def6f2;
  --success: #2c7a4b;
  --success-soft: #e5f6eb;
  --accent: #ff8b3d;
  --accent-soft: #fff1e7;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #ffffff 0%, #f2fbfa 38%, var(--bg) 100%);
}

.app-topbar {
  background: #103940;
  color: #e8fbf8;
  padding: 8px 18px;
}

.app-topbar__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.app-topbar__left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-topbar__home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.app-topbar__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.app-topbar__identity {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-topbar__menu {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-topbar__quicklink {
  color: #e8fbf8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
}

.app-topbar__quicklink:hover {
  background: rgba(255, 255, 255, 0.12);
}

.app-topbar__quicklink--mobile {
  display: none;
}

@media (max-width: 980px) {
  .app-topbar__quicklink {
    display: none;
  }
}

.app-topbar__burger {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #e8fbf8;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 700;
  display: none;
}

.app-topbar__burger:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 980px) {
  .app-topbar__burger {
    display: inline-block;
  }
}

.app-topbar__actions {
  display: flex;
  position: static;
  top: auto;
  right: auto;
  min-width: auto;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  z-index: auto;
  flex-direction: row;
  margin-left: 8px;
  gap: 8px;
}

.app-topbar__actions .app-topbar__logout,
.app-topbar__actions .app-topbar__button-link {
  color: #e8fbf8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-topbar__actions .app-topbar__logout:hover,
.app-topbar__actions .app-topbar__button-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.app-topbar__actions .app-topbar__logout {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #e8fbf8;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-topbar__actions .app-topbar__logout:hover {
  background: rgba(255, 255, 255, 0.12);
}

.app-topbar__actions form {
  margin: 0;
  display: inline;
}

@media (max-width: 980px) {
  .app-topbar__actions {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    padding: 8px;
    background: #0f3f46;
    box-shadow: 0 12px 24px rgba(9, 23, 27, 0.34);
    z-index: 120;
    flex-direction: column;
    margin-left: 0;
  }

  .app-topbar__actions.is-open {
    display: flex;
  }

  .app-topbar__actions .app-topbar__logout,
  .app-topbar__actions .app-topbar__button-link {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 999px;
  }

  .app-topbar__actions form {
    margin: 0;
    display: block;
  }

  .app-topbar__actions .app-topbar__quicklink--mobile {
    display: inline-flex;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }
}

.app-topbar__link {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #e8fbf8;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.app-topbar__link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.app-topbar__role {
  color: #9fded7;
}

.app-topbar__logout {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #e8fbf8;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 700;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}

.app-topbar__logout:hover {
  background: rgba(255, 255, 255, 0.12);
}

.app-topbar__button-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  width: 100%;
}

.app-topbar__home-button {
  width: auto;
}

.app-topbar__button-link:link,
.app-topbar__button-link:visited,
.app-topbar__button-link:hover,
.app-topbar__button-link:active,
.app-topbar__button-link:focus {
  text-decoration: none;
  color: #e8fbf8;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 24px;
  padding: 40px 32px 24px;
  align-items: stretch;
}

.hero__content,
.hero__stats,
.featured,
.event-card,
.empty-state {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(18, 48, 58, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.brand__logo {
  width: 164px;
  max-width: 40vw;
  height: auto;
  display: block;
}

.hero__content {
  padding: 28px;
}

.hero__stats {
  padding: 20px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 14px;
}

.hero p {
  color: var(--muted);
  line-height: 1.6;
}

.for-you-profile p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.event-match {
  margin: 10px 0 14px;
  display: grid;
  gap: 8px;
}

.event-match__score {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--success);
  background: var(--success-soft);
}

.event-match__reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-match__reason {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
}

.search {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
}

.search button,
.search__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
  text-decoration: none;
}

.search button {
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

.search button:hover {
  background: #0b887b;
}

.search__reset {
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
}

.hero__stats .stat {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f1fbfa 100%);
  border: 1px solid var(--border);
}

.stat__value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
}

.stat__label {
  color: var(--muted);
}

.container {
  padding: 0 32px 40px;
}

.featured {
  padding: 24px;
  margin-bottom: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.featured__meta,
.featured__description {
  color: var(--muted);
  line-height: 1.6;
}

.featured__description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.featured__badge {
  height: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #b15c22;
  font-weight: 800;
  text-transform: uppercase;
}

.events-grid {
  display: grid;
  gap: 24px;
}

.moderation-panel {
  margin-top: 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(18, 48, 58, 0.08);
  padding: 18px;
}

.moderation-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.moderation-panel__head h2 {
  margin: 0;
}

.moderation-panel__controls {
  display: inline-flex;
  gap: 8px;
}

.moderation-panel__controls select,
.moderation-panel__controls button {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}

.moderation-panel__controls button {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.moderation-panel__status {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.moderation-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.moderation-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #f9fdfd;
}

.moderation-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.moderation-item__badge {
  background: #eff7ff;
  border: 1px solid #cce2ff;
  color: #29538a;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 700;
}

.moderation-item__meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.moderation-item__note {
  margin: 8px 0 0;
  color: var(--text);
}

.moderation-item__actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.moderation-item__actions button {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  padding: 7px 10px;
  font-weight: 700;
}

.moderation-item__actions button:hover {
  background: #edf8f7;
}

.moderation-diff-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.92rem;
}

.moderation-diff-table th,
.moderation-diff-table td {
  border: 1px solid var(--border);
  padding: 8px;
  vertical-align: top;
  text-align: left;
}

.moderation-diff-table thead th {
  background: #eef8f7;
  color: var(--text);
  font-weight: 700;
}

.moderation-new-event-editor {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #ffffff;
}

.moderation-new-event-editor h4 {
  margin: 0;
  font-size: 0.95rem;
}

.moderation-new-event-editor__grid {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.moderation-new-event-editor__row {
  display: grid;
  gap: 4px;
}

.moderation-new-event-editor__row span {
  font-size: 0.84rem;
  color: var(--muted);
}

.moderation-new-event-editor__row input,
.moderation-new-event-editor__row textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
  background: #f9fdfd;
}

.moderation-new-event-editor__row textarea {
  min-height: 74px;
  resize: vertical;
}

.moderation-new-event-editor__row input[readonly],
.moderation-new-event-editor__row textarea[readonly] {
  background: #eef3f3;
  color: #5d747a;
}

.moderation-image-list {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}

.moderation-image-item {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #f7fbfb;
}

.moderation-image-item img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  display: block;
}

.events-pagination {
  margin-top: 20px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.for-you-filters {
  margin: 0 0 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(18, 48, 58, 0.06);
  padding: 14px;
}

.for-you-filters__form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.for-you-filters__field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.for-you-filters__field input,
.for-you-filters__field select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.for-you-filters__actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.for-you-filters__actions button,
.for-you-filters__actions a {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f4fbfa;
  color: #0a7f73;
  padding: 10px 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.for-you-filters__actions button:hover,
.for-you-filters__actions a:hover {
  background: #e8f8f5;
}

.events-pagination__status {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f3fbfa;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.for-you-undo-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2500;
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.32);
}

.for-you-undo-toast:not([hidden]) {
  display: inline-flex;
}

.for-you-undo-toast__button {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
}

.for-you-undo-toast__button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.event-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
}

.event-card::before {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -18px;
  width: 360px;
  height: 170px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 220'%3E%3Cpath d='M0 220 L90 150 L140 180 L220 60 L300 170 L350 130 L430 220 Z' fill='%230f9d8f' fill-opacity='0.12'/%3E%3Cpath d='M120 220 L210 120 L270 200 L335 100 L430 220 Z' fill='%230f9d8f' fill-opacity='0.1'/%3E%3Cpath d='M205 120 L220 96 L235 120 Z' fill='%23ffffff' fill-opacity='0.6'/%3E%3Cpath d='M320 125 L335 103 L350 125 Z' fill='%23ffffff' fill-opacity='0.55'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.event-card > * {
  position: relative;
  z-index: 1;
}

.event-card__hero {
  margin: 0 0 18px;
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: center;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e6f7f4;
  box-shadow: 0 10px 28px rgba(15, 157, 143, 0.16);
}

.carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
  background: #eef2ff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.carousel__slide.is-fallback-image {
  object-fit: contain;
  background: #ecf7f5;
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.carousel__nav--prev {
  left: 10px;
}

.carousel__nav--next {
  right: 10px;
}

.event-card__body {
  display: grid;
  gap: 14px;
}

.event-card__suggestion-top {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  padding: 12px;
}

.event-suggestion-link {
  border: 0;
  background: transparent;
  color: #0a7f73;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.event-suggestion-link:hover {
  color: #0f9d8f;
}

.event-suggestion {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fcfc;
  padding: 10px 12px;
}

.event-suggestion > summary {
  cursor: pointer;
  font-weight: 700;
  color: #0a7f73;
}

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

.event-suggestion__form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.9rem;
}

.event-suggestion__form input,
.event-suggestion__form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.event-suggestion__full {
  grid-column: 1 / -1;
}

.event-suggestion__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-suggestion__actions button {
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
}

.event-suggestion__status {
  color: var(--muted);
  font-size: 0.88rem;
}

.event-suggestion-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 24, 29, 0.5);
}

.event-suggestion-modal[hidden] {
  display: none !important;
}

.event-suggestion-modal__content {
  width: min(640px, 94vw);
  max-height: min(86vh, 780px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 14px 36px rgba(10, 24, 29, 0.24);
}

.event-suggestion-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.event-suggestion-modal__header h3 {
  margin: 0;
  font-size: 1rem;
}

.event-suggestion-modal__close {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 29, 0.56);
}

.modal__container {
  position: relative;
  z-index: 1;
  width: min(680px, 94vw);
  max-height: min(88vh, 860px);
  margin: 4vh auto;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(10, 24, 29, 0.35);
}

.modal__form,
.modal__content {
  padding: 18px;
}

.modal__title {
  margin-bottom: 10px;
}

.modal__description,
.modal__hint {
  color: var(--muted);
}

.modal__section {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #f9fcfc;
}

.modal__subsection-title {
  margin-bottom: 10px;
}

.modal__field {
  margin-bottom: 12px;
}

.modal__label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
}

.modal__textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  color: var(--text);
  background: #fff;
  resize: vertical;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn--primary {
  border: 0;
  background: var(--primary);
  color: #fff;
}

.btn--secondary {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.rating-stars {
  display: inline-flex;
  gap: 4px;
}

.rating-star {
  border: 0;
  background: transparent;
  color: #b2c2c7;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}

.rating-star.is-hover,
.rating-star.is-active {
  color: #f59e0b;
}

.modal__loading,
.modal__success,
.modal__error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
}

.modal__loading {
  background: #eef6ff;
  border: 1px solid #c8dcf5;
}

.modal__success {
  background: #e9f8ef;
  border: 1px solid #cdeed8;
}

.modal__error {
  background: #fff0f0;
  border: 1px solid #f3c8c8;
  color: #9b1c1c;
}

.event-card__badges {
  margin-bottom: 0;
}

.event-card__title {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

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

.favorite-btn {
  border: 1px solid #ffd8a8;
  background: #fff4e6;
  color: #a35005;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.favorite-btn:hover {
  background: #ffe9cc;
}

.favorite-btn.is-active {
  border-color: #ffd8a8;
  background: #fff4e6;
  color: #a35005;
}

.favorite-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.favorite-btn--icon {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
}

.event-card__info-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f5fb;
  color: var(--muted);
  font-weight: 700;
}

.info-pill--hover::after {
  content: attr(data-description);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: #182033;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.info-pill--hover:hover::after {
  opacity: 1;
}

.info-pill--strong {
  background: #d8f3ef;
  color: #0f4a52;
}

.event-card__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.event-card__headline {
  width: 100%;
}

.event-card__description {
  color: var(--muted);
  line-height: 1.65;
  margin: 12px 0 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.event-overview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.overview-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f3f5fb;
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.overview-pill::after {
  content: attr(data-description);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: #182033;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.overview-pill:hover::after {
  opacity: 1;
}

.overview-pill__label {
  color: var(--muted);
  font-weight: 700;
}

.overview-pill--tag {
  background: #e2f8f4;
  color: #136f64;
  border-color: #b7e9e0;
}

.overview-pill--link {
  color: #0a7f73;
  text-decoration: none;
  background: #effdfa;
}

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

.thumb-strip__item {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fbfcff;
}

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

.badges,
.chip-list,
.link-list,
.schedule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge,
.inline-badge,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.badge--primary {
  background: var(--primary-soft);
  color: var(--primary);
}

.badge--muted {
  background: #fff3ea;
  color: var(--muted);
}

.badge--success {
  background: var(--success-soft);
  color: var(--success);
}

.event-card__meta {
  color: var(--muted);
}

.event-card__summary {
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 18px;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.image-gallery--compact {
  margin-top: 14px;
}

.image-gallery__item {
  margin: 0;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fbfcff;
}

.image-gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #eef2ff;
}

.image-gallery__item figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  word-break: break-all;
}

.empty-box,
.empty-state {
  padding: 24px;
}

.empty-box {
  border: 1px dashed var(--border);
  border-radius: 16px;
  color: var(--muted);
  background: #fbfcff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
}

.details {
  display: grid;
  gap: 18px;
}

.details--compact {
  margin-top: 14px;
}


.link-list a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.rating-box {
  display: inline-grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f6f8ff;
  border: 1px solid var(--border);
}

.rating-box strong {
  font-size: 1.6rem;
}

.rating-box--compact {
  width: fit-content;
}

.link-list--tight {
  gap: 8px;
}

.schedule-list {
  flex-direction: column;
}

.schedule-list__item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fbfcff;
  border: 1px solid var(--border);
}

.empty-state {
  text-align: center;
}

.scroll-top-btn {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 90;
  border: 1px solid var(--border);
  border-radius: 999px;
  min-width: 56px;
  height: 40px;
  padding: 0 14px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(18, 48, 58, 0.18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.scroll-top-btn:hover {
  background: #0b887b;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-footer {
  margin: 8px 32px 34px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #f6fdfb;
  display: flex;
  gap: 14px;
  justify-content: center;
}

.site-footer a {
  color: #0c766b;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.auth-page,
.legal-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px;
}

.auth-card,
.legal-card {
  width: min(680px, 96vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(18, 48, 58, 0.08);
  padding: 28px;
}

.auth-card__hint {
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
}

.auth-form button {
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
}

.auth-card__error {
  color: #a12020;
  background: #ffecec;
  border: 1px solid #f5bdbd;
  border-radius: 10px;
  padding: 10px 12px;
}

.auth-card__links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.auth-card__links a,
.legal-card a {
  color: #0c766b;
  font-weight: 700;
}

.account-page {
  min-height: calc(100vh - 58px);
  display: grid;
  place-items: start center;
  padding: 26px;
}

.account-card {
  width: min(760px, 96vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(18, 48, 58, 0.08);
  padding: 28px;
}

.account-card__hint {
  color: var(--muted);
}

.account-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.account-form__field {
  display: grid;
  gap: 8px;
}

.account-form__field--full {
  grid-column: 1 / -1;
}

.account-form input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
}

.account-form select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  background: #fff;
}

.account-form__help {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.account-form input[type="file"] {
  padding: 10px;
  background: #f7fbfb;
}

.account-form input:disabled {
  background: #f4f7f8;
  color: #6e848b;
}

.account-form button {
  grid-column: 1 / -1;
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
}

.account-card__success {
  color: #1f6d42;
  background: #e9f8ef;
  border: 1px solid #bfe5ce;
  border-radius: 10px;
  padding: 10px 12px;
}

.account-card__error {
  color: #a12020;
  background: #ffecec;
  border: 1px solid #f5bdbd;
  border-radius: 10px;
  padding: 10px 12px;
}

.account-avatar-preview {
  margin-top: 16px;
}

.account-avatar-preview p {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
}

.account-avatar-preview img,
.account-avatar-preview__img {
  width: 75px !important;
  height: 75px !important;
  max-width: 75px !important;
  max-height: 75px !important;
  min-width: 75px;
  min-height: 75px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.account-suggestions {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.account-interests {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.account-interests h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.account-interests h3 {
  margin: 12px 0 6px;
  font-size: 1rem;
}

.account-interests__editor {
  margin-top: 10px;
}

.account-interests__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 32px;
  margin-bottom: 10px;
}

.account-interests__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 14px;
  padding: 3px 10px 3px 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.account-interests__remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  color: inherit;
  opacity: 0.6;
}

.account-interests__remove:hover {
  opacity: 1;
}

.account-interests__input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.account-interests__input-row input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
}

.account-interests__status {
  font-size: 0.85rem;
  margin-top: 6px;
  min-height: 1.2em;
  color: var(--text-muted, #666);
}

.account-interests__profile {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--surface-alt, #f6f8fc);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.account-export {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.account-export h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.account-export__actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-export__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

.account-export__button:hover {
  background: #0b887b;
  border-color: #0b887b;
}

.account-export__button--secondary {
  background: #fff;
  color: var(--primary);
}

.account-export__button--secondary:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}


.account-suggestions h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.account-suggestions__list {
  display: grid;
  gap: 10px;
}

.account-suggestions__item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fcfc;
}

.account-suggestions__item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.account-suggestions__badge {
  border: 1px solid #cce2ff;
  background: #eff7ff;
  color: #29538a;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.account-suggestions__meta {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-suggestion-discussion {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #f6fbff;
}

.account-suggestion-response {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.account-suggestion-fields {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfeff;
}

.account-suggestion-fields label {
  display: grid;
  gap: 5px;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.88rem;
}

.account-suggestion-fields input,
.account-suggestion-fields textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
}

.account-suggestion-response textarea {
  width: 100%;
  min-height: 84px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  resize: vertical;
}

.account-suggestion-response__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.submission-page {
  padding-top: 28px;
  padding-bottom: 40px;
}

.submission-form {
  display: grid;
  gap: 18px;
}

.submission-form section {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.submission-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.submission-form input,
.submission-form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  color: var(--text);
}

.submission-form button[type="submit"] {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  width: fit-content;
  cursor: pointer;
}

.alert {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}

.alert.success {
  background: #effbf1;
  border-color: #bce8c4;
  color: #1f7a35;
}

.alert.error {
  background: #fff1f1;
  border-color: #efc1c1;
  color: #9e3030;
}

@media (max-width: 980px) {
  .hero,
  .featured,
  .event-card__header,
  .search {
    grid-template-columns: 1fr;
    display: grid;
  }

  .container,
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .featured {
    display: grid;
  }

  .carousel,
  .carousel__slide {
    max-width: 100%;
  }

  .carousel__nav--prev {
    left: 8px;
  }

  .carousel__nav--next {
    right: 8px;
  }

  .account-form {
    grid-template-columns: 1fr;
  }

  .event-suggestion__form {
    grid-template-columns: 1fr;
  }

  .account-form__field--full,
  .account-form button {
    grid-column: auto;
  }

  .event-card::before {
    width: 260px;
    height: 120px;
    right: -26px;
    bottom: -10px;
  }

  .scroll-top-btn {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    min-width: 52px;
    height: 38px;
    padding: 0 12px;
    font-size: 0.85rem;
  }

  .site-footer {
    margin-left: 18px;
    margin-right: 18px;
  }

  .app-topbar {
    padding: 8px 12px;
  }

  .app-topbar__identity {
    max-width: 42vw;
    font-size: 0.82rem;
  }

  .app-topbar__logo {
    width: 36px;
    height: 36px;
  }
}

/* View Toggle */
.view-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  width: fit-content;
}

.view-toggle__btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.view-toggle__btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.view-toggle__btn--active,
.view-toggle__btn[aria-pressed="true"] {
  background: var(--primary);
  color: #ffffff;
}

/* Netflix Grid */
.netflix-grid {
  display: block;
  padding: 0;
}

.netflix-rows {
  display: grid;
  gap: 18px;
}

.netflix-row {
  padding: 0;
}

.netflix-row__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
}

.netflix-row__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.netflix-row__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  padding: 0;
}

.netflix-row__track .netflix-card {
  scroll-snap-align: none;
}

.view-content {
  display: none;
}

.view-content--active {
  display: block;
}

.events-grid.view-content--active {
  display: grid;
  gap: 24px;
}

/* Netflix Card */
.netflix-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(18, 48, 58, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border);
  height: 100%;
}

.netflix-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(18, 48, 58, 0.12);
}

.netflix-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  height: 100%;
}

.netflix-card__image-container {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.netflix-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.netflix-card__link:hover .netflix-card__image {
  transform: scale(1.05);
}

.netflix-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1;
}

.netflix-card__score {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 157, 143, 0.9);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 1;
}

.netflix-card__content {
  padding: 12px;
  background: var(--card);
}

.netflix-card__title {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.netflix-card__date {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.netflix-card__location {
  display: block;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .netflix-row__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .netflix-row__track {
    grid-template-columns: 1fr;
  }
  
  .view-toggle {
    width: 100%;
    justify-content: center;
  }
  
  .view-toggle__btn {
    flex: 1;
    text-align: center;
  }
}

@media (min-width: 1400px) {
  .netflix-row__track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}



/* Location Verification Styles */
.location-verification {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.location-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.location-info strong {
  color: var(--muted);
  font-weight: 600;
  min-width: 140px;
}

.location-info span {
  flex: 1;
  word-break: break-word;
}

.location-match {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.location-match.is-match {
  background: var(--success-soft);
  color: var(--success);
}

.location-match.is-mismatch {
  background: var(--accent-soft);
  color: var(--accent);
}

.match-indicator {
  font-weight: 700;
  font-size: 1.1em;
}

.modal__warning {
  background: #fff5e6;
  border: 1px solid #ffd8a8;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.modal__warning p {
  margin: 0 0 8px 0;
  color: #a35005;
}

.modal__warning p:last-child {
  margin-bottom: 0;
}

.modal__warning label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  cursor: pointer;
}

.modal__warning input[type="checkbox"] {
  margin-top: 2px;
}
