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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #f8f8fc;
  color: #333;
  line-height: 1.5;
  min-height: 100vh;
}

/* ─── NAVBAR ─────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 60px;
  background: #0d0d1a;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
}

.nav-logo { font-size: 20px; }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  padding: 6px 12px; border-radius: 8px;
  font-size: 13px; color: rgba(255,255,255,0.6);
  text-decoration: none; transition: all 0.15s;
}

.nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-admin { color: rgba(255,255,255,0.85); }

/* ─── FLASH ───────────────────────────────────────────────────────────────── */
.flash-container { padding: 0.75rem 1.5rem; }
.flash {
  background: #fff0f0; color: #c00;
  padding: 10px 16px; border-radius: 8px;
  font-size: 13px; border: 1px solid #f7c1c1;
}

/* ─── HERO ────────────────────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a3e 60%, #0d1a2e 100%);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}

.hero-inner { max-width: 600px; margin: 0 auto; }

.page-hero h1 {
  font-size: 2.2rem; font-weight: 900;
  color: #fff; margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.page-hero p {
  font-size: 1rem; color: rgba(255,255,255,0.55);
}

/* ─── CONTAINER ──────────────────────────────────────────────────────────── */
.container {
  max-width: 900px; margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ─── EVENTS GRID ────────────────────────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.event-card {
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
}

.event-card:hover {
  box-shadow: 0 8px 30px rgba(13,13,26,0.08);
  transform: translateY(-2px);
}

.event-card-header {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 1.25rem 1.25rem 0.75rem;
}

.event-date-badge {
  display: flex; flex-direction: column; align-items: center;
  background: #f0f0f8; border-radius: 10px;
  padding: 8px 12px; min-width: 52px; flex-shrink: 0;
}

.date-day { font-size: 1.5rem; font-weight: 800; color: #0d0d1a; line-height: 1; }
.date-month { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.05em; }

.event-info h2 { font-size: 15px; font-weight: 700; color: #0d0d1a; margin-bottom: 4px; line-height: 1.3; }
.event-venue { font-size: 12px; color: #999; margin: 0; }
.event-time { font-size: 12px; color: #bbb; margin: 0; }

.event-card-body { padding: 0.75rem 1.25rem 1.25rem; }

.event-stats {
  display: flex; gap: 1rem; margin-bottom: 1rem;
  padding: 10px; background: #f8f8fc; border-radius: 10px;
}

.stat { display: flex; flex-direction: column; align-items: center; flex: 1; }
.stat-val { font-size: 1.3rem; font-weight: 800; color: #0d0d1a; }
.stat-label { font-size: 10px; color: #aaa; text-align: center; }

.btn-primary {
  display: block; text-align: center;
  padding: 11px 20px;
  background: #0d0d1a; color: #fff;
  border-radius: 10px; font-size: 14px; font-weight: 700;
  text-decoration: none; transition: background 0.15s;
}
.btn-primary:hover { background: #2d2d5a; }

.btn-disabled {
  display: block; width: 100%; text-align: center;
  padding: 11px 20px;
  background: #f0f0f8; color: #bbb;
  border-radius: 10px; font-size: 14px; font-weight: 700;
  border: none; cursor: not-allowed;
}

/* ─── EMPTY STATE ────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h2 { font-size: 1.3rem; font-weight: 700; color: #555; margin-bottom: 0.5rem; }
.empty-state p { color: #aaa; font-size: 14px; }
