:root {
  --ev-bg: #0f0618;
  --ev-card: #1a0b2e;
  --ev-purple: #6b21a8;
  --ev-gold: #fdba74;
  --ev-text: #f5f0ff;
  --ev-muted: #b7a8c9;
  --ev-line: rgba(255,255,255,.1);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Poppins, system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, #3a1560 0%, var(--ev-bg) 55%);
  color: var(--ev-text);
  min-height: 100vh;
}
a { color: var(--ev-gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.ev-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 20px 64px; }
.ev-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.ev-brand { display: flex; align-items: center; gap: 12px; }
.ev-brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.ev-brand h1 { margin: 0; font-size: 1.4rem; }
.ev-brand p { margin: 2px 0 0; color: var(--ev-muted); font-size: .9rem; }
.ev-nav {
  display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap;
}
.ev-nav-link {
  display: inline-flex; align-items: center;
  padding: 6px 2px; border: 0; border-radius: 0; background: none;
  color: var(--ev-muted); font-weight: 600; font-size: .9rem;
  text-decoration: none; border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.ev-nav-link:hover {
  color: var(--ev-text); text-decoration: none;
  border-bottom-color: rgba(253, 186, 116, .45);
}
.ev-nav-link.is-active {
  color: var(--ev-gold); border-bottom-color: var(--ev-gold);
}
.ev-nav-link.ev-nav-icon { padding: 6px 4px; }
.ev-nav-link.ev-nav-icon:hover { border-bottom-color: rgba(253, 186, 116, .45); }
.ev-nav-link.ev-nav-icon.is-active { color: var(--ev-gold); }
.ev-nav-icon-svg { display: block; width: 20px; height: 20px; }
@media (max-width: 520px) {
  .ev-top { gap: 12px; }
  .ev-nav { gap: 4px 14px; }
  .ev-nav-link { font-size: .85rem; }
}
.ev-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--ev-line);
  background: rgba(255,255,255,.04); color: var(--ev-text); font-weight: 600; font-size: .9rem;
}
.ev-btn:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.ev-btn-primary { background: var(--ev-purple); border-color: transparent; }
.ev-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px;
}
.ev-card {
  background: var(--ev-card); border: 1px solid var(--ev-line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, border-color .15s;
}
.ev-card:hover { transform: translateY(-2px); border-color: rgba(253,186,116,.45); text-decoration: none; color: inherit; }
.ev-card-flyer {
  aspect-ratio: 1; background: #12071f center/cover no-repeat;
}
.ev-card-body { padding: 14px 16px 18px; }
.ev-card-body h2 { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.3; }
.ev-meta { color: var(--ev-muted); font-size: .85rem; display: grid; gap: 4px; }
.ev-card .ev-meta > div:nth-child(-n+2) { font-weight: 700; }
.ev-detail {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start;
}
@media (max-width: 800px) {
  .ev-detail { grid-template-columns: 1fr; }
}
.ev-flyer-lg {
  width: 100%; border-radius: 18px; border: 1px solid var(--ev-line); display: block;
  background: #12071f;
}
.ev-panel {
  background: var(--ev-card); border: 1px solid var(--ev-line); border-radius: 18px; padding: 22px;
}
.ev-panel h1 { margin: 0 0 12px; font-size: 1.8rem; }
.ev-panel .ev-meta { margin-bottom: 16px; }
.ev-panel .desc { color: #e8dff5; line-height: 1.65; white-space: pre-wrap; }
.ev-empty { text-align: center; padding: 48px 16px; color: var(--ev-muted); }

/* Event donate */
.ev-donate {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--ev-line);
}
.ev-donate h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--ev-gold);
}
.ev-donate-lead {
  margin: 0 0 14px;
  color: var(--ev-muted);
  font-size: .95rem;
  line-height: 1.45;
}
.ev-donate-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(220, 38, 38, .16);
  color: #fecaca;
  font-size: .9rem;
}
.ev-donate-form { display: grid; gap: 14px; }
.ev-donate-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ev-donate-form legend {
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ev-muted);
}
.ev-donate-chip,
.ev-donate-amount {
  position: relative;
  cursor: pointer;
}
.ev-donate-chip input,
.ev-donate-amount input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ev-donate-chip span,
.ev-donate-amount span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--ev-line);
  background: rgba(255,255,255,.04);
  color: var(--ev-text);
  font-weight: 700;
  font-size: .95rem;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.ev-donate-chip input:checked + span,
.ev-donate-amount input:checked + span {
  background: var(--ev-purple);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(253, 186, 116, .55);
}
.ev-donate-chip:hover span,
.ev-donate-amount:hover span {
  border-color: rgba(253, 186, 116, .45);
}
.ev-donate-optional {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px) {
  .ev-donate-optional { grid-template-columns: 1fr; }
}
.ev-donate-optional label {
  display: grid;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ev-muted);
}
.ev-donate-optional label span { font-weight: 500; opacity: .8; }
.ev-donate-optional input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--ev-line);
  background: rgba(255,255,255,.04);
  color: var(--ev-text);
  font: inherit;
}
.ev-donate-optional input::placeholder { color: rgba(183, 168, 201, .7); }
.ev-donate-optional input:focus {
  outline: none;
  border-color: rgba(253, 186, 116, .55);
}
.ev-donate-submit {
  justify-self: start;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 12px 18px;
}
.ev-donate-note {
  margin: 0;
  color: var(--ev-muted);
  font-size: .82rem;
  line-height: 1.45;
}

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cal-head h2 { margin: 0; font-size: 1.35rem; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.cal-dow { text-align: center; font-size: .75rem; color: var(--ev-muted); padding: 6px 0; text-transform: uppercase; letter-spacing: .04em; }
.cal-day {
  min-height: 92px; background: rgba(255,255,255,.03); border: 1px solid var(--ev-line);
  border-radius: 10px; padding: 6px; font-size: .78rem;
}
.cal-day.muted { opacity: .35; }
.cal-day .num { font-weight: 700; margin-bottom: 4px; }
.cal-day a {
  display: block; background: rgba(107,33,168,.45); color: #fff; border-radius: 6px;
  padding: 3px 5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-day a:hover { background: var(--ev-purple); text-decoration: none; }
@media (max-width: 700px) {
  .cal-day { min-height: 64px; font-size: .68rem; }
  .cal-day a { font-size: .62rem; }
}
