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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(180deg, #f0f2ff 0%, #f7f7fb 200px, #f7f7fb 100%);
  color: #222;
  line-height: 1.4;
}

header {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
  padding: 1.5rem 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(108, 92, 231, 0.25);
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tagline {
  font-size: 13px;
  opacity: 0.9;
}

main {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem 0.75rem;
}

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: white;
  border: 1px solid #e0e0f0;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  color: #555;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #a29bfe;
  color: #6c5ce7;
}

.filter-btn.active {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.35);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity 0.25s ease;
}

.event-list.fading {
  opacity: 0;
}

.event-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.15);
}

.event-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #e0e0f0 0%, #f0f0fa 100%);
}

.event-body {
  padding: 0.9rem 1.1rem 1.1rem;
}

.event-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
  color: #222;
}

.event-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-price {
  font-size: 14px;
  font-weight: 700;
  color: #6c5ce7;
}

.event-category {
  display: inline-block;
  background: #f0eefd;
  color: #6c5ce7;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

@media (min-width: 700px) {
  main {
    padding: 1.5rem;
  }
}
.event-card.featured {
  border: 2px solid #fbbf24;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.25);
}

.featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.card-form {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-form h2 {
  font-size: 16px;
  margin-bottom: 4px;
}

.card-form input,
.card-form textarea {
  padding: 10px 12px;
  border: 1px solid #e0e0f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}

.card-form textarea {
  resize: vertical;
  min-height: 60px;
}

.card-form button {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.error-text {
  color: #e74c3c;
  font-size: 13px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

.small-btn {
  background: #f0eefd;
  color: #6c5ce7;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.org-event-card {
  background: white;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.org-event-card .title {
  font-weight: 700;
  font-size: 14px;
}

.org-event-card .meta {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

h2 {
  margin: 1.2rem 0 0.6rem;
  font-size: 17px;
}

.promote-intro {
  font-size: 13px;
  color: #888;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-form select {
  padding: 10px 12px;
  border: 1px solid #e0e0f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  color: #222;
}

.package-group {
  display: flex;
  gap: 8px;
}

.card-form .package-btn {
  flex: 1;
  background: white;
  border: 1.5px solid #e0e0f0;
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.card-form .package-btn:hover {
  border-color: #a29bfe;
  color: #6c5ce7;
}

.card-form .package-btn.active {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
  border-color: transparent;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.card-form .slot-btn {
  background: white;
  border: 1.5px solid #e0e0f0;
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 12px;
  font-family: inherit;
  color: #555;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.slot-btn .slot-number {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
}

.card-form .slot-btn.available:hover {
  border-color: #a29bfe;
  background: #f0eefd;
  color: #6c5ce7;
}

.card-form .slot-btn.selected {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
  border-color: transparent;
}

.card-form .slot-btn.taken {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f7f7fb;
}

.card-form button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.success-text {
  color: #00b894;
  font-size: 13px;
  font-weight: 600;
}