/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Neutral near-black surfaces; purple/teal accents from the app (src/styles/colors.js) */
  --ink: #09090b;
  --ink-2: #141417;
  --ink-3: #1f1f24;
  --primary: #6D2F9A;
  --violet: #9444CB;
  --lilac: #C19FDC;
  --teal: #02DCC7;
  --success: #34C759;
  --warning: #FF9500;
  --error: #FF3B30;
  --bg-primary: var(--ink);
  --bg-secondary: var(--ink-2);
  --bg-tertiary: var(--ink-3);
  --text-primary: #FFFFFF;
  --text-secondary: #9b9ba5;
  --border: rgba(255, 255, 255, 0.1);

  /* Aliases for code that uses shorter names */
  --bg: var(--bg-primary);
  --surface: var(--bg-secondary);
  --text: var(--text-primary);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Button base */
  --btn-height: 52px;
  --btn-radius: 14px;
  --btn-font-size: 15px;
  --btn-font-weight: 700;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Loading State */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Error State */
.error {
  text-align: center;
  padding: 60px 20px;
}

.error-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.error h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.error p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--lilac), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Ended / cancelled note — sits in the card where the RSVP section was. */
.event-closed {
  margin: 4px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.event-closed.cancelled {
  background: rgba(255, 59, 48, 0.12);
  border-color: rgba(255, 59, 48, 0.3);
  color: var(--error);
}

/* Event Card */
.event-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.event-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

/* Event Poster — 16:9 cover hero */
.poster-container {
  width: 100%;
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-tertiary);
  aspect-ratio: 16 / 9;
}

.event-poster {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.icon {
  font-size: 24px;
  line-height: 1;
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.info-value {
  font-size: 14px;
  color: var(--text-secondary);
}

.description-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.description-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre-wrap;
}

/* Location Section - Clickable */
.location-section {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(109, 47, 154, 0.1);
  border: 1px solid rgba(109, 47, 154, 0.3);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.location-section:hover {
  background: rgba(109, 47, 154, 0.15);
  border-color: rgba(109, 47, 154, 0.5);
}

.location-content {
  flex: 1;
}

.location-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.location-address {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.chevron {
  font-size: 24px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* RSVP Counts/Buttons Section */
#rsvp-counts-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Name input in RSVP section */
#rsvp-counts-section .form-group {
  margin-bottom: 20px;
}

#rsvp-counts-section .form-group label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

#rsvp-counts-section .form-group input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
}

#rsvp-counts-section .form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

#rsvp-counts-section .form-group input::placeholder {
  color: var(--text-secondary);
}

/* Private ("request to attend") event note above the RSVP buttons */
.private-event-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin: -8px 0 20px 0;
  font-style: italic;
}

/* ── Event page: RSVP choice + step sheet (event.html / event.js) ──────── */
.rsvp-head { margin-bottom: 14px; }
.rsvp-prompt { margin: 0; font-size: 18px; font-weight: 700; color: var(--text-primary); }
.rsvp-status { margin: 6px 0 0; font-size: 14px; color: var(--text-secondary); }
.rsvp-foot {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.link-btn strong { color: var(--text-primary); }
.link-btn:hover { color: var(--text-primary); }
.link-btn.center { display: block; margin: 2px auto 0; }
.link-btn.report-event-link { margin-top: 16px; font-size: 13px; }
.report-event-link.hidden { display: none; }
.report-reasons { display: grid; gap: 8px; }

.primary-btn, .secondary-btn {
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--btn-radius);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.primary-btn { border: none; background: var(--primary); color: #FFFFFF; }
.secondary-btn { border: 1px solid var(--border); background: var(--bg-tertiary); color: var(--text-primary); }
.primary-btn:active, .secondary-btn:active { transform: scale(0.98); }
.primary-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* The sheet: bottom sheet on phones, centered card on wider screens. */
.sheet {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--text-primary);
  width: 100%;
  max-width: 440px;
  margin: auto auto 0;
  max-height: 92vh;
}
/* Beat the UA's dialog:modal max-width/height (calc(100% - 2em - 6px)) so the
   sheet spans the phone edge to edge. */
dialog.sheet:modal { max-width: min(440px, 100%); max-height: 92vh; }
.sheet::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(2px); }
.sheet[open] { animation: sheetUp 0.25s ease-out; }
.sheet[open]::backdrop { animation: fadeIn 0.2s ease-out; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 600px) {
  .sheet { margin: auto; }
  .sheet .sheet-inner { border-radius: 20px; }
  .sheet-grabber { display: none; }
}
.sheet-inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
}
.sheet-top { position: relative; height: 22px; margin-bottom: 4px; }
.sheet-grabber {
  display: block;
  width: 36px; height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 6px auto 0;
}
.sheet-close {
  position: absolute; top: 0; right: -4px;
  background: none; border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}
.step { display: none; flex-direction: column; gap: 14px; }
.step.active { display: flex; animation: stepIn 0.2s ease-out; }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.step-emoji { font-size: 40px; line-height: 1; text-align: center; margin-top: 4px; }
.step-title { margin: 0; font-size: 22px; font-weight: 700; text-align: center; }
.step-sub { margin: -6px 0 4px; font-size: 14px; color: var(--text-secondary); text-align: center; line-height: 1.4; }
.sheet .form-group { gap: 6px; }
.sheet .form-group label { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.sheet-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--text-primary);
}
.sheet-input:focus { outline: none; border-color: var(--primary); }
.sheet-input::placeholder { color: var(--text-secondary); }
.code-input { text-align: center; letter-spacing: 8px; font-size: 22px; }

.remind-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.remind-block.hidden { display: none; }
.remind-title { font-size: 16px; font-weight: 700; text-align: center; }

.terms-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.terms-check input { margin-top: 2px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--primary); }
.terms-check a { color: var(--text-primary); }

.app-badge-link { display: flex; justify-content: center; }
.app-badge-link img { height: 40px; }

/* RSVP Choice Buttons (horizontal layout like app) */
.rsvp-choice-buttons {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.choice-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 12px;
  border-radius: var(--btn-radius);
  border: 2px solid;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  min-height: 70px;
}

.choice-btn:disabled,
.choice-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.choice-btn.greyed-out {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.choice-btn.selected {
  opacity: 1;
}

.choice-btn .btn-icon {
  font-size: 22px;
  display: block;
}

.choice-btn .btn-text {
  font-size: 14px;
  font-weight: 600;
  display: block;
}

.going-choice {
  border-color: var(--success);
  color: var(--success);
}

.going-choice:hover:not(:disabled):not(.disabled):not(.greyed-out) {
  background: rgba(52, 199, 89, 0.15);
}

.going-choice.selected {
  background: rgba(52, 199, 89, 0.2);
}

.maybe-choice {
  border-color: var(--warning);
  color: var(--warning);
}

.maybe-choice:hover:not(:disabled):not(.disabled):not(.greyed-out) {
  background: rgba(255, 149, 0, 0.15);
}

.maybe-choice.selected {
  background: rgba(255, 149, 0, 0.2);
}

.cantgo-choice {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

.cantgo-choice:hover:not(:disabled):not(.disabled):not(.greyed-out) {
  background: rgba(142, 142, 147, 0.15);
}

.cantgo-choice.selected {
  background: rgba(142, 142, 147, 0.2);
}

/* RSVP Form (shown after selection, in same section) */
.rsvp-form {
  margin-top: 24px;
}

.rsvp-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Form Elements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group input::placeholder {
  color: var(--text-secondary);
}

.form-hint {
  font-size: 13px;
  color: var(--text-secondary);
}

/* RSVP Buttons */
.rsvp-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.rsvp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  border: 2px solid;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  min-height: var(--btn-height);
}

.going-btn {
  border-color: var(--success);
  color: var(--success);
}

.going-btn:hover {
  background: rgba(52, 199, 89, 0.2);
}

.maybe-btn {
  border-color: var(--warning);
  color: var(--warning);
}

.maybe-btn:hover {
  background: rgba(255, 149, 0, 0.2);
}

.cant-go-btn {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

.cant-go-btn:hover {
  background: rgba(142, 142, 147, 0.2);
}

.btn-icon {
  font-size: 18px;
}

/* Response Header (after selection) */
.response-header {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-primary);
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
  margin-top: 8px;
  min-height: var(--btn-height);
}

.submit-btn:hover {
  opacity: 0.9;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Back Link */
.back-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 0;
  font-family: inherit;
  text-align: center;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--lilac);
}

/* Verify Step */
.verify-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.back-btn {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--lilac);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  font-family: inherit;
}

.verify-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.verify-text span {
  color: var(--text-primary);
  font-weight: 600;
}

.verify-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
  margin-top: 8px;
  min-height: var(--btn-height);
}

.verify-btn:hover {
  opacity: 0.9;
}

.verify-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.resend-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--lilac);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.resend-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Success Step */
#step-success {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  margin: 0 auto 20px;
}

#step-success h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.success-text {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.download-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--lilac), var(--teal));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* Footer */

.footer {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 32px 20px 40px;
  line-height: 2;
}

.footer strong {
  color: var(--text-primary);
}

.footer-link {
  margin-top: 8px;
}

.footer-link a {
  color: var(--lilac);
  text-decoration: none;
  font-weight: 600;
}

/* ─── Shared Form Styles ────────────────────────────────── */
.form-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.form-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 12px;
}

.form-section h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.form-section .form-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.form-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.field input,
.field select,
.field textarea {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238E8E93' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  background-color: var(--bg-tertiary);
}

.field select option {
  background: var(--bg-secondary);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-secondary);
}

/* Honeypot — must be invisible to humans */
.field-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--lilac), var(--teal));
  color: white;
  border: none;
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
  min-height: var(--btn-height);
  margin-top: 4px;
}

.form-submit-btn:hover { opacity: 0.9; }
.form-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-error-msg {
  display: none;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--error);
  margin-bottom: 16px;
}

.form-error-msg.visible { display: block; }

.form-success-msg {
  display: none;
  text-align: center;
  padding: 40px 16px;
}

.form-success-msg.visible { display: block; }

.form-success-msg .success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.form-success-msg h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.form-success-msg p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.recaptcha-note {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.recaptcha-note a {
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 20px;
  }
}

/* ─── Site Nav ─────────────────────────────────────────── */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.site-nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-nav .nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav .nav-logo span {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--lilac), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links .nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: opacity 0.2s !important;
}

.nav-links .nav-cta:hover {
  opacity: 0.9;
}


/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--border);
  gap: 4px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 4px;
  border-radius: 8px;
  transition: color 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--text-primary);
}
.mobile-menu .nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  justify-content: center;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
}

@media (max-width: 480px) {
  #app {
    padding: 16px;
  }

  .event-title {
    font-size: 28px;
  }

  .event-card, .rsvp-section {
    padding: 20px;
  }
}

