:root {
  --bg-start: #fffdf8;
  --bg-end: #f4ede0;
  --text-main: #1f1d2b;
  --text-muted: #6b6a75;
  --accent: #6c63ff;
  --accent-strong: #8c74ff;
  --border: rgba(15, 23, 42, 0.08);
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

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

body {
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, var(--bg-start), var(--bg-end));
  min-height: 100vh;
  overflow-x: hidden;
}

.sticky-actions {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 999;
}

.sticky-apple {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-apple::before {
  content: "";
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05), inset 0 1px 4px rgba(255, 255, 255, 0.08);
}

.sticky-apple:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sticky-menu {
  position: absolute;
  top: 84px;
  right: 0;
  display: grid;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  min-width: 160px;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sticky-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.sticky-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.8rem;
  border: none;
  background: rgba(108, 99, 255, 0.08);
  color: #1d1a26;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.sticky-link:hover {
  transform: translateY(-1px);
  background: rgba(108, 99, 255, 0.14);
  box-shadow: 0 8px 16px rgba(108, 99, 255, 0.2);
}

@media (max-width: 640px) {
  .sticky-actions {
    top: 1rem;
    right: 1rem;
  }

  .sticky-apple {
    width: 56px;
    height: 56px;
    border-width: 2px;
  }

  .sticky-apple::before {
    width: 40px;
    height: 40px;
  }

  .sticky-menu {
    top: 68px;
    min-width: 140px;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

.wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.hero {
  padding: 2rem 0 1rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-link {
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  background: var(--glass);
  color: var(--text-main);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(6px);
}

.hero-content {
  margin-top: 2rem;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tagline {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.filters {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: end;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

select {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  color: var(--text-main);
  padding: 0.65rem 1rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px);
}

.filters-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
}

main {
  padding: 1rem 0 3rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.event-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.3rem;
  overflow: hidden;
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
}

.event-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: saturate(1.05);
}

.event-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.event-content h3 {
  font-size: 1.5rem;
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(108, 99, 255, 0.2);
  text-transform: capitalize;
}

.pill-neutral {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--text-main);
}

.pill-accent {
  background: rgba(108, 99, 255, 0.12);
}

.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 10px;
  border: 1px dashed rgba(108, 99, 255, 0.35);
  color: var(--text-main);
  text-transform: capitalize;
  background: rgba(108, 99, 255, 0.08);
}

.event-location {
  font-weight: 600;
  color: var(--text-main);
}

.event-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.event-card .primary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.4);
  width: 100%;
}

.event-card button {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.event-card button:hover {
  background: rgba(108, 99, 255, 0.15);
  transform: translateY(-2px);
}

.event-card .details-btn {
  width: 100%;
  min-width: 0;
  background: linear-gradient(120deg, #6c63ff, #8c74ff);
  color: #fff;
  border: none;
  padding: 0.85rem 1.8rem;
  box-shadow: 0 12px 28px rgba(108, 99, 255, 0.38);
}

.event-card .details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(108, 99, 255, 0.5);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.date-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 120px;
}

.date-main {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.date-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.status-chip {
  text-transform: capitalize;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.status-upcoming {
  background: linear-gradient(135deg, #ede9fe, #c7d2fe);
  color: #4338ca;
  border-color: rgba(99, 102, 241, 0.35);
}

.status-done {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.35);
}

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

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}

.modal-card {
  width: min(780px, 95vw);
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
}

.modal-body h2 {
  font-size: 1.6rem;
}

.modal-body p {
  line-height: 1.6;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 50;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(420px, 90vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
  z-index: 60;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.modal-body p {
  color: var(--text-muted);
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.register-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--text-main);
}

.register-form input,
.register-form textarea {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.7rem 0.9rem;
  font: inherit;
  background: #fbfbff;
  color: var(--text-main);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.register-form textarea {
  resize: vertical;
  min-height: 96px;
}

button.primary {
  width: 100%;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  border: none;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(108, 99, 255, 0.25);
}

@media (max-width: 600px) {
  .hero {
    padding-top: 1rem;
  }

  .event-card img {
    height: 150px;
  }
}
