:root {
  --font-body: "Nunito", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --bg-deep: #1a1412;
  --bg: #221b18;
  --surface: rgba(45, 36, 32, 0.92);
  --surface-solid: #2f2622;
  --surface-raised: #3a302b;
  --surface-hover: rgba(58, 48, 43, 0.95);
  --ink: #faf6f0;
  --ink-soft: rgba(250, 246, 240, 0.92);
  --muted: rgba(250, 246, 240, 0.62);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.15);
  --coral: #ff9b7a;
  --violet: #c4a1ff;
  --cyan: #7aeda8;
  --amber: #fcd34d;
  --rose: #fb8da5;
  --link: #ffb088;
  --danger: #fca5a5;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  --shadow-subtle: 0 8px 28px rgba(0, 0, 0, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196, 161, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(255, 155, 122, 0.12), transparent 50%),
    linear-gradient(180deg, #1c1614 0%, #221b18 45%, #1a1412 100%);
  pointer-events: none;
  z-index: -2;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
}

.ambient--one {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: rgba(255, 122, 92, 0.22);
  animation: drift 18s var(--ease) infinite alternate;
}

.ambient--two {
  width: 360px;
  height: 360px;
  top: 20%;
  right: -100px;
  background: rgba(94, 234, 212, 0.15);
  animation: drift 22s var(--ease) infinite alternate-reverse;
}

@keyframes drift {
  to { transform: translate(40px, 30px) scale(1.08); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--ink);
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(34, 27, 24, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  font-weight: 700;
  background: linear-gradient(135deg, var(--coral), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav-actions {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink-soft);
  box-shadow: none;
}

.nav-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  transform: none;
  box-shadow: none;
}

.nav-menu-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
}

.nav-menu__account {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-user {
  font-size: 0.84rem;
}

/* ── Buttons ── */

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.25s var(--ease);
  background: linear-gradient(135deg, #ff9b7a 0%, #e8896a 100%);
  color: #2a1812;
  box-shadow: 0 4px 18px rgba(255, 155, 122, 0.28);
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 155, 122, 0.35);
  text-decoration: none;
  color: #2a1812;
}

button:active,
.button:active {
  transform: translateY(0);
}

button.secondary,
.button.secondary,
.button--ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

button.secondary:hover,
.button.secondary:hover,
.button--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--ink);
  box-shadow: none;
}

.button--soft {
  background: rgba(255, 155, 122, 0.12);
  color: var(--ink-soft);
  border: 1px solid rgba(255, 155, 122, 0.22);
  box-shadow: none;
}

.button--soft:hover {
  background: rgba(255, 155, 122, 0.18);
  color: var(--ink);
  box-shadow: none;
}

button.danger {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.3);
  box-shadow: none;
}

button.danger:hover {
  background: rgba(248, 113, 113, 0.25);
  box-shadow: none;
}

/* ── Hero ── */

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

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero h1 .hero-accent {
  font-weight: 700;
  background: linear-gradient(135deg, var(--coral) 0%, var(--violet) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lede {
  margin: 0;
  max-width: 46ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Search ── */

.search-shell {
  position: relative;
  margin: 0 0 2rem;
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.9rem 1.1rem 0.9rem 2.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-solid);
  color: var(--ink);
  font-size: 0.95rem;
  outline: none;
  box-shadow: var(--shadow-subtle);
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:hover {
  border-color: var(--border-strong);
}

.search-input:focus {
  border-color: rgba(255, 155, 122, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 155, 122, 0.12);
  background: var(--surface-raised);
}

.search-status {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  color: var(--muted);
  pointer-events: none;
}

/* ── Bento grid ── */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(130px, auto);
  gap: 1rem;
  grid-auto-flow: dense;
  padding-bottom: 4rem;
}

.bento-grid--loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.bento-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  animation: fadeUp 0.55s var(--ease) both;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.bento-card:hover {
  transform: translateY(-5px) scale(1.01);
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.bento-card__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}

.bento-card:hover .bento-card__backdrop {
  transform: scale(1.06);
  filter: saturate(1.15) brightness(1.05);
}

.bento-card__noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.bento-card__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}

.bento-card__orb--one {
  width: 55%;
  height: 55%;
  top: -15%;
  right: -10%;
  opacity: 0.7;
}

.bento-card__orb--two {
  width: 40%;
  height: 40%;
  bottom: -10%;
  left: -5%;
  opacity: 0.5;
}

.bento-card:hover .bento-card__orb--one {
  transform: translate(-8px, 8px);
  opacity: 0.9;
}

.bento-card:hover .bento-card__orb--two {
  transform: translate(6px, -6px);
  opacity: 0.7;
}

.bento-card__monogram {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  z-index: 1;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}

.bento-card:hover .bento-card__monogram {
  color: rgba(255, 255, 255, 0.11);
  transform: scale(1.04);
}

.bento-card__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(
    180deg,
    rgba(24, 30, 42, 0.18) 0%,
    rgba(24, 30, 42, 0.42) 45%,
    rgba(24, 30, 42, 0.68) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.bento-card:hover .bento-card__content {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(
    180deg,
    rgba(24, 30, 42, 0.12) 0%,
    rgba(24, 30, 42, 0.36) 45%,
    rgba(24, 30, 42, 0.62) 100%
  );
}

.bento-card--hot {
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.25),
    0 0 40px rgba(255, 122, 92, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bento-card--hot:hover {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(255, 122, 92, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.bento-card--sm {
  grid-column: span 2;
  grid-row: span 1;
  min-height: 148px;
}

.bento-card--md {
  grid-column: span 3;
  grid-row: span 2;
  min-height: 220px;
}

.bento-card--lg {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 260px;
}

/* Theme gradients — auto-matched from event title/keywords */
.bento-card--theme-sport .bento-card__backdrop {
  background: linear-gradient(135deg, #1a0533 0%, #4c1d95 35%, #dc2626 100%);
}
.bento-card--theme-sport .bento-card__orb--one { background: #f97316; }
.bento-card--theme-sport .bento-card__orb--two { background: #7c3aed; }

.bento-card--theme-celebration .bento-card__backdrop {
  background: linear-gradient(135deg, #4a044e 0%, #be185d 45%, #fb7185 100%);
}
.bento-card--theme-celebration .bento-card__orb--one { background: #f472b6; }
.bento-card--theme-celebration .bento-card__orb--two { background: #c026d3; }

.bento-card--theme-social .bento-card__backdrop {
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #06b6d4 100%);
}
.bento-card--theme-social .bento-card__orb--one { background: #818cf8; }
.bento-card--theme-social .bento-card__orb--two { background: #22d3ee; }

.bento-card--theme-outdoor .bento-card__backdrop {
  background: linear-gradient(135deg, #042f2e 0%, #0f766e 40%, #84cc16 100%);
}
.bento-card--theme-outdoor .bento-card__orb--one { background: #2dd4bf; }
.bento-card--theme-outdoor .bento-card__orb--two { background: #a3e635; }

.bento-card--theme-music .bento-card__backdrop {
  background: linear-gradient(135deg, #1e1033 0%, #6d28d9 50%, #ec4899 100%);
}
.bento-card--theme-music .bento-card__orb--one { background: #a78bfa; }
.bento-card--theme-music .bento-card__orb--two { background: #f472b6; }

.bento-card--theme-food .bento-card__backdrop {
  background: linear-gradient(135deg, #451a03 0%, #c2410c 45%, #fbbf24 100%);
}
.bento-card--theme-food .bento-card__orb--one { background: #fb923c; }
.bento-card--theme-food .bento-card__orb--two { background: #facc15; }

.bento-card--theme-learning .bento-card__backdrop {
  background: linear-gradient(135deg, #0c1a3a 0%, #1d4ed8 50%, #38bdf8 100%);
}
.bento-card--theme-learning .bento-card__orb--one { background: #60a5fa; }
.bento-card--theme-learning .bento-card__orb--two { background: #38bdf8; }

.bento-card--theme-community .bento-card__backdrop {
  background: linear-gradient(135deg, #1a2e05 0%, #15803d 50%, #86efac 100%);
}
.bento-card--theme-community .bento-card__orb--one { background: #4ade80; }
.bento-card--theme-community .bento-card__orb--two { background: #86efac; }

.bento-card--theme-ember .bento-card__backdrop {
  background: linear-gradient(135deg, #1c0a00 0%, #9a3412 50%, #fb923c 100%);
}
.bento-card--theme-ember .bento-card__orb--one { background: #ea580c; }
.bento-card--theme-ember .bento-card__orb--two { background: #fdba74; }

.bento-card--theme-ocean .bento-card__backdrop {
  background: linear-gradient(135deg, #0c1929 0%, #0369a1 50%, #22d3ee 100%);
}
.bento-card--theme-ocean .bento-card__orb--one { background: #0ea5e9; }
.bento-card--theme-ocean .bento-card__orb--two { background: #67e8f9; }

.bento-card--theme-sunset .bento-card__backdrop {
  background: linear-gradient(135deg, #2d0a1e 0%, #be123c 40%, #fb923c 100%);
}
.bento-card--theme-sunset .bento-card__orb--one { background: #f43f5e; }
.bento-card--theme-sunset .bento-card__orb--two { background: #fb923c; }

.bento-card--theme-aurora .bento-card__backdrop {
  background: linear-gradient(135deg, #0f172a 0%, #5b21b6 40%, #2dd4bf 100%);
}
.bento-card--theme-aurora .bento-card__orb--one { background: #8b5cf6; }
.bento-card--theme-aurora .bento-card__orb--two { background: #5eead4; }

.bento-card--theme-blossom .bento-card__backdrop {
  background: linear-gradient(135deg, #3b0764 0%, #a21caf 45%, #f9a8d4 100%);
}
.bento-card--theme-blossom .bento-card__orb--one { background: #d946ef; }
.bento-card--theme-blossom .bento-card__orb--two { background: #f9a8d4; }

.bento-card--theme-lagoon .bento-card__backdrop {
  background: linear-gradient(135deg, #042f2e 0%, #0e7490 50%, #5eead4 100%);
}
.bento-card--theme-lagoon .bento-card__orb--one { background: #14b8a6; }
.bento-card--theme-lagoon .bento-card__orb--two { background: #99f6e4; }

.bento-card--theme-dusk .bento-card__backdrop {
  background: linear-gradient(135deg, #1e1033 0%, #4c1d95 50%, #f472b6 100%);
}
.bento-card--theme-dusk .bento-card__orb--one { background: #7c3aed; }
.bento-card--theme-dusk .bento-card__orb--two { background: #e879f9; }

.bento-card--theme-flare .bento-card__backdrop {
  background: linear-gradient(135deg, #1a0a00 0%, #b45309 45%, #fde047 100%);
}
.bento-card--theme-flare .bento-card__orb--one { background: #f59e0b; }
.bento-card--theme-flare .bento-card__orb--two { background: #fde047; }

.bento-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.bento-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bento-card__date-chip {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  line-height: 1;
}

.bento-card__date-month {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.bento-card__date-day {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.1rem;
}

.bento-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.bento-card--lg .bento-card__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.bento-card--sm .bento-card__monogram {
  font-size: 2.75rem;
  top: 0.25rem;
  right: 0.5rem;
}

.bento-card--sm .bento-card__title {
  font-size: 1.1rem;
  padding-right: 2.5rem;
}

.bento-card--sm .bento-card__footer {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.bento-card__desc {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-card__footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.bento-card__meta {
  display: grid;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.bento-card__rsvp {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.bento-card__rsvp--hot {
  background: rgba(255, 122, 92, 0.25);
  border-color: rgba(255, 122, 92, 0.4);
  color: #fecaca;
}

.bento-card__rsvp--inline {
  margin-top: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.pill--glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
}

.pill--theme {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
}

.pill--soft {
  background: rgba(255, 176, 136, 0.22);
  border: 1px solid rgba(255, 176, 136, 0.55);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

/* ── Shared components ── */

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.panel {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-subtle);
}

.panel h1,
.panel h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.stack {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.label-hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
}

input,
textarea,
select {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  background: var(--surface-raised);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 155, 122, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 155, 122, 0.1);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

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

.error {
  color: var(--danger);
  font-size: 0.9rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.empty-state p {
  margin: 0 0 1rem;
}

.day-block {
  border: 1px dashed rgba(255, 155, 122, 0.22);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: rgba(255, 155, 122, 0.04);
}

.member-list,
.attendee-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.member-list li,
.attendee-list li,
.attendee-family {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.attendee-family {
  display: block;
  padding: 1rem 0;
}

.attendee-family__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.attendee-family__header h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  color: #2a1812;
  letter-spacing: -0.02em;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.member-list li:last-child,
.attendee-list li:last-child {
  border-bottom: none;
}

.checkbox-grid {
  display: grid;
  gap: 0.5rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.checkbox-row input {
  width: auto;
  accent-color: var(--coral);
}

.interest-panel {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 155, 122, 0.07);
  border: 1px solid rgba(255, 155, 122, 0.14);
}

.interest-copy {
  margin: 0 0 0.75rem;
}

.lock-notice {
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.lock-notice a {
  color: var(--coral);
  font-weight: 700;
}

.share-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.share-box input {
  flex: 1;
}

.profile-events-panel h2 {
  margin-bottom: 0.35rem;
}

.profile-events {
  margin-top: 1.25rem;
  display: grid;
  gap: 1.5rem;
}

.profile-events-section__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-events-list {
  display: grid;
  gap: 0.75rem;
}

.profile-event-card {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-raised);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    background 0.2s var(--ease);
}

.profile-event-card:hover {
  border-color: rgba(110, 231, 217, 0.35);
  background: rgba(50, 61, 80, 0.95);
  transform: translateY(-1px);
  color: inherit;
  text-decoration: none;
}

.profile-event-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.profile-event-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.profile-event-card .meta {
  margin: 0.15rem 0 0;
}

.pill--status {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.pill--status-in_progress {
  background: rgba(110, 231, 217, 0.15);
  border-color: rgba(110, 231, 217, 0.3);
  color: var(--cyan);
}

.pill--status-upcoming {
  background: rgba(180, 154, 255, 0.15);
  border-color: rgba(180, 154, 255, 0.3);
  color: var(--violet);
}

.pill--status-past {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--muted);
}

.event-description {
  margin: 1rem 0 0;
  line-height: 1.65;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.event-schedule {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.event-schedule__heading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.event-schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.event-schedule-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  border: 1px solid var(--border);
}

.event-schedule-item__main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.event-schedule-item__date {
  font-weight: 600;
  color: var(--ink);
}

.event-schedule-item__label {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.event-schedule-item__time {
  flex-shrink: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 540px) {
  .event-schedule-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

.event-url-wrap {
  margin: 0.75rem 0 0;
}

.event-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--link);
}

.event-link::after {
  content: "↗";
  font-size: 0.82rem;
  opacity: 0.8;
}

.event-link:hover {
  color: var(--ink);
}

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

.event-location-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.event-location-link::after {
  content: " ↗";
  font-size: 0.82rem;
  opacity: 0.75;
}

.attendee-phone {
  margin: 0;
  font-size: 0.9rem;
}

.attendee-phone .event-location-link::after {
  content: none;
}

/* Legacy card grid (other pages) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-subtle);
}

.card h2,
.card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .bento-card--sm {
    grid-column: span 2;
  }

  .bento-card--md {
    grid-column: span 2;
    grid-row: span 2;
  }

  .bento-card--lg {
    grid-column: span 4;
    grid-row: span 2;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100%, calc(100% - 1.5rem));
  }

  .hero {
    padding: 2.5rem 0 1.5rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-card--sm,
  .bento-card--md,
  .bento-card--lg {
    grid-column: span 1;
    grid-row: span 1;
    min-height: auto;
  }

  .bento-card--lg .bento-card__title {
    font-size: 1.4rem;
  }

  .share-box,
  .actions {
    flex-direction: column;
  }

  .nav {
    align-items: center;
    flex-direction: row;
    padding: 0.65rem 0;
  }

  .brand {
    font-size: 1.3rem;
  }

  .nav-menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    min-width: 12rem;
    padding: 0.45rem;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 50;
  }

  .nav-actions.is-open .nav-menu {
    display: flex;
  }

  .nav-menu__account {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
  }

  .nav-menu .button,
  .nav-menu a.button,
  .nav-menu button.button {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-menu .nav-user {
    padding: 0.45rem 0.65rem 0.15rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
  }
}

/* ── Event invite / poster page (option B) ── */

.page-event {
  padding-top: 0;
}

.page-event .event-back {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(20, 14, 12, 0.42);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.page-event .event-back:hover {
  color: #fff;
  background: rgba(20, 14, 12, 0.58);
}

.event-loading {
  padding: 5rem 1.25rem 2rem;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.event-flyer {
  position: relative;
  isolation: isolate;
  min-height: clamp(300px, 48vh, 440px);
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.event-flyer .bento-card__backdrop,
.event-flyer .bento-card__noise,
.event-flyer .bento-card__orb {
  position: absolute;
}

.event-flyer__monogram {
  font-size: clamp(4.5rem, 14vw, 9rem) !important;
  top: 0.75rem;
  right: 1rem;
  opacity: 0.85;
}

.event-flyer__content {
  position: relative;
  z-index: 2;
  padding: 5rem 1.25rem 3.25rem;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  color: #fff;
}

.event-flyer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.event-flyer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.event-flyer__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  max-width: 20ch;
}

.event-flyer__dates,
.event-flyer__location {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.event-flyer__location-link {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-flyer__location-link:hover {
  color: #fff;
}

.sticker-badge {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.4rem 0.85rem;
  background: #fff;
  color: #2a1812;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  transform: rotate(-2.5deg);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

.event-flyer__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  height: 44px;
  background: var(--bg-deep);
  clip-path: ellipse(120% 100% at 50% 100%);
}

.event-body {
  padding: 1.25rem 0 3.5rem;
}

.event-body__lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.event-section {
  margin-bottom: 1.25rem;
}

.event-section-label {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel--flyer {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-subtle);
}

.event-schedule--flyer {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  margin-bottom: 1.5rem;
}

.event-schedule--flyer .event-schedule__heading,
.event-section-label {
  color: var(--ink);
}

.share-box--flyer {
  margin-top: 0.5rem;
}

@media (max-width: 540px) {
  .event-flyer__content {
    padding-top: 4.5rem;
  }

  .event-flyer__title {
    max-width: none;
  }
}

.event-affiliation-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0.35rem;
}

.pill--affiliation {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill--affiliation.is-active {
  background: #fff;
  border-color: #fff;
  color: #2a1812;
}

.pill--clickable {
  cursor: pointer;
  font: inherit;
}

.pill--clickable:hover {
  background: rgba(255, 255, 255, 0.24);
}

.pill--affiliation.is-active:hover {
  background: #fff;
}

.attendees-filter {
  margin-bottom: 1rem;
}

.attendees-filter__label {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
}

.attendees-filter__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.attendees-filter .pill--affiliation {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--ink);
}

.attendees-filter .pill--affiliation.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.attendees-filter .pill--affiliation:hover {
  border-color: var(--border-strong);
}

.button--small {
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
}

.affiliation-field {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  gap: 0.35rem;
}

.affiliation-field__header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.affiliation-field__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.affiliation-field__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-label {
  font-weight: 700;
  color: var(--ink);
}

.affiliation-help {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.affiliation-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.affiliation-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 176, 136, 0.28);
  border-color: rgba(255, 176, 136, 0.65);
}

.affiliation-chip__remove {
  border: none;
  background: rgba(0, 0, 0, 0.18);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.affiliation-chip__remove:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.32);
}

.affiliation-typeahead {
  position: relative;
}

.affiliation-typeahead input {
  width: 100%;
}

.affiliation-suggestions {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-height: 12rem;
  overflow-y: auto;
}

.affiliation-suggestion {
  padding: 0.55rem 0.65rem;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  font-size: 0.92rem;
}

.affiliation-suggestion:hover,
.affiliation-suggestion:focus {
  background: var(--surface-raised);
}

.affiliation-suggestion--new {
  font-weight: 600;
  color: var(--link);
}

.attendee-affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.affiliation-pill {
  font-size: 0.75rem;
}
