@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Serif+Display&display=swap');

:root {
  --primary: #FFF176;
  --secondary: #FFEE58;
  --accent: #FDD835;
  --light: #F9A825;
  --bg: #5D4037;
  --white: #ffffff;
  --card-bg: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8888aa;
  --border: #c5cae9;
  --border-light: #e8eaf6;
  --danger: #e53935;
  --danger-light: #ffebee;
  --success: #2e7d32;
  --success-light: #e8f5e9;
  --shadow-sm: 0 1px 3px rgba(26, 35, 126, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 35, 126, 0.1);
  --shadow-lg: 0 8px 30px rgba(26, 35, 126, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

::selection {
  background: var(--light);
  color: var(--white);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* Loading Screen */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 16px;
  color: var(--text-secondary);
}

.loading-pulse {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1); opacity: 1; }
}

/* Header */
.app-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.5px;
}

.logo:hover {
  opacity: 0.85;
}

.header-nav {
  display: flex;
  gap: 8px;
}

.nav-btn {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.nav-btn.active {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  font-weight: 600;
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  min-height: calc(100vh - 64px);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  animation: fadeIn 0.5s ease;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.empty-state h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Dashboard */
.dashboard {
  animation: fadeIn 0.4s ease;
}

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

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.dashboard-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  color: var(--primary);
}

.dashboard-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 2px;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeInUp 0.4s ease both;
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.05s; }
.stat-card:nth-child(3) { animation-delay: 0.1s; }
.stat-card:nth-child(4) { animation-delay: 0.15s; }

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

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.event-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
  cursor: pointer;
  animation: fadeInUp 0.4s ease both;
}

.event-card:nth-child(1) { animation-delay: 0.05s; }
.event-card:nth-child(2) { animation-delay: 0.1s; }
.event-card:nth-child(3) { animation-delay: 0.15s; }
.event-card:nth-child(4) { animation-delay: 0.2s; }
.event-card:nth-child(5) { animation-delay: 0.25s; }
.event-card:nth-child(6) { animation-delay: 0.3s; }

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--light);
}

.event-card.past-event {
  opacity: 0.7;
}

.event-card-cover {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.event-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-card:hover .event-card-cover img {
  transform: scale(1.05);
}

.event-card-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 3rem;
}

.past-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-card-body {
  padding: 16px 20px 12px;
}

.event-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-item {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.event-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rsvp-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rsvp-count {
  background: var(--bg);
  color: var(--primary);
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.rsvp-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.plus-ones-note {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  gap: 4px;
}

.btn-icon {
  background: transparent;
  border: none;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-icon:hover {
  background: var(--bg);
}

.btn-icon.btn-danger:hover {
  background: var(--danger-light);
}

/* Creator */
.creator-container {
  max-width: 680px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease;
}

.creator-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.creator-header {
  padding: 28px 32px 0;
}

.creator-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  color: var(--primary);
  margin-top: 12px;
}

.creator-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 4px;
}

.creator-form {
  padding: 24px 32px 32px;
}

/* Back Link */
.back-link {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
  transition: color 0.2s;
}

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

/* Cover Upload */
.cover-upload-section {
  margin-bottom: 24px;
}

.cover-upload-label {
  display: block;
  cursor: pointer;
}

.cover-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  transition: all 0.2s;
  background: var(--bg);
}

.cover-placeholder:hover {
  border-color: var(--accent);
  background: rgba(57, 73, 171, 0.05);
  color: var(--accent);
}

.upload-icon {
  font-size: 2rem;
}

.upload-hint {
  font-size: 0.75rem;
  opacity: 0.7;
}

.cover-preview {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
}

.cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 126, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  color: var(--white);
  font-weight: 600;
}

.cover-preview:hover .cover-overlay {
  opacity: 1;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--white);
  transition: all 0.2s;
  min-height: 44px;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.12);
}

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

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  resize: vertical;
  min-height: 100px;
  transition: all 0.2s;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.12);
}

.form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  min-height: 44px;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background: var(--white);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  min-height: 44px;
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--light);
}

/* Event View */
.event-view {
  animation: fadeIn 0.4s ease;
}

.event-view-header {
  margin-bottom: 16px;
}

.event-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
}

.hero-image {
  height: 320px;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 35, 126, 0.85) 0%, rgba(26, 35, 126, 0.2) 60%, transparent 100%);
}

.hero-placeholder {
  height: 240px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-emoji {
  font-size: 5rem;
  animation: bounce 2s ease infinite;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  color: var(--white);
}

.hero-placeholder + .hero-content {
  position: absolute;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.25rem;
  margin-bottom: 12px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-detail {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.95;
}

/* Event Body */
.event-body {
  max-width: 720px;
  margin: 0 auto;
}

.event-section {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.event-section h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.event-description {
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Share Section */
.share-section {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.share-section h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.share-link-box {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.share-link-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: monospace;
  background: var(--bg);
}

.share-link-input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-copy {
  background: var(--bg);
  border: 1.5px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--accent);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-copy:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-share {
  background: var(--bg);
  border: 1.5px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  color: var(--accent);
  transition: all 0.2s;
  width: 100%;
}

.btn-share:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* RSVP Section */
.rsvp-section {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.rsvp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.rsvp-section-header h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--primary);
}

.rsvp-stats {
  display: flex;
  gap: 8px;
}

.rsvp-stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.rsvp-stat-pill.accent {
  background: rgba(57, 73, 171, 0.1);
  color: var(--accent);
}

.stat-pill-number {
  font-weight: 700;
  color: var(--primary);
}

.rsvp-stat-pill.accent .stat-pill-number {
  color: var(--accent);
}

.btn-rsvp {
  width: 100%;
  font-size: 1.05rem;
  padding: 14px;
}

/* RSVP Form */
.rsvp-form {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  animation: fadeIn 0.3s ease;
}

.plus-ones-control {
  display: flex;
  align-items: center;
  gap: 16px;
}

.plus-minus-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-primary);
  font-family: inherit;
}

.plus-minus-btn:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.plus-ones-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 30px;
  text-align: center;
}

/* Guest List */
.guest-list-section {
  margin-top: 20px;
}

.btn-toggle-guests {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 0;
  font-family: inherit;
  transition: color 0.2s;
}

.btn-toggle-guests:hover {
  color: var(--primary);
}

.guest-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guest-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  animation: fadeInUp 0.3s ease both;
}

.guest-card:nth-child(1) { animation-delay: 0s; }
.guest-card:nth-child(2) { animation-delay: 0.03s; }
.guest-card:nth-child(3) { animation-delay: 0.06s; }
.guest-card:nth-child(4) { animation-delay: 0.09s; }
.guest-card:nth-child(5) { animation-delay: 0.12s; }
.guest-card:nth-child(6) { animation-delay: 0.15s; }
.guest-card:nth-child(7) { animation-delay: 0.18s; }
.guest-card:nth-child(8) { animation-delay: 0.21s; }
.guest-card:nth-child(9) { animation-delay: 0.24s; }
.guest-card:nth-child(10) { animation-delay: 0.27s; }

.guest-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.guest-info {
  flex: 1;
  min-width: 0;
}

.guest-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  display: block;
}

.guest-email {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.guest-meta {
  display: flex;
  gap: 10px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.guest-plus {
  font-size: 0.75rem;
  background: rgba(57, 73, 171, 0.1);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.guest-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.btn-remove-guest {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-remove-guest:hover {
  color: var(--danger);
  background: var(--danger-light);
}

/* Responsive */
@media (max-width: 640px) {
  .header-content {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 8px;
  }

  .header-nav {
    width: 100%;
  }

  .nav-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .main-content {
    padding: 20px 16px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .creator-form {
    padding: 20px;
  }

  .creator-header {
    padding: 20px 20px 0;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-content {
    padding: 20px;
  }

  .hero-image {
    height: 220px;
  }

  .hero-details {
    gap: 8px;
  }

  .hero-detail {
    font-size: 0.85rem;
  }

  .rsvp-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-link-box {
    flex-direction: column;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card {
    padding: 14px 10px;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}
```

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to Eventify! This is your event dashboard where you can manage all your events.", "view": "user", "highlight_selector": ".dashboard-header", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Tap 'Create Event' to set up a new event with a name, date, location, and cover image.", "view": "user", "highlight_selector": ".nav-btn:last-child", "wait_for": "user_interaction"},
  {"step": 3, "narration": "Upload a cover image to make your event stand out. Fill in the event details and click Create.", "view": "user", "highlight_selector": ".cover-upload-section", "wait_for": "tap_to_continue"},
  {"step": 4, "narration": "Once created, you'll see your event page with a shareable link. Copy it and send it to your guests!", "view": "user", "highlight_selector": ".share-section", "wait_for": "tap_to_continue"},
  {"step": 5, "narration": "Guests can RSVP with their name and bring plus-ones. You'll see the full guest list and total count here.", "view": "user", "highlight_selector": ".rsvp-section", "wait_for": "tap_to_continue"},
  {"step": 6, "narration": "Back on the dashboard, you can see RSVP counts for all your events at a glance. Enjoy planning!", "view": "user", "highlight_selector": ".stats-row", "wait_for": "tap_to_continue"}
]
-->

.event-map {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background: var(--bg);
}

.event-view-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.qr-print-card {
  background: #fff;
  color: #111;
  border-radius: 16px;
  padding: 24px;
  max-width: 420px;
  margin-top: 24px;
  border: 1px solid #e5e7eb;
}

.qr-print-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.qr-link {
  font-size: 0.85rem;
  word-break: break-all;
  margin: 0 0 16px;
  color: #4b5563;
}

.qr-code-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
}

.qr-caption {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.event-view-empty {
  padding: 24px;
}

.countdown-card {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.countdown-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  font-weight: 600;
}

.countdown-value {
  font-size: 1.05rem;
  font-weight: 700;
}

.rsvp-closed-banner {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(229, 57, 53, 0.18);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.rsvp-closed-state {
  background: var(--danger-light);
  border: 1px solid rgba(229, 57, 53, 0.18);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rsvp-closed-text {
  color: var(--text-secondary);
  font-weight: 500;
}

.guest-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-export-guests {
  background: var(--bg);
  border: 1.5px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--accent);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-export-guests:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .guest-list-header {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-export-guests {
    width: 100%;
  }
}
