* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f5f5f5;
  color: #222;
  padding: 1rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
  margin-bottom: 2rem;
}

.logo { font-size: 22px; font-weight: bold; }
.logo span { color: #1D9E75; }

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #555;
  font-size: 15px;
}

.nav-links a:hover { color: #1D9E75; }

/* Buttons */
.btn-primary {
  background: #1D9E75;
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  margin: 6px;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-secondary {
  background: transparent;
  color: #222;
  border: 1px solid #ccc;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  margin: 6px;
  display: inline-block;
}

.btn-primary:hover { background: #178a63; }

/* Hero */
.hero {
  background: white;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  border: 1px solid #e0e0e0;
}

.badge {
  background: #E1F5EE;
  color: #0F6E56;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1rem;
}

.hero h1 { font-size: 28px; margin-bottom: 1rem; }

.hero p {
  font-size: 16px;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.feature-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: #666; line-height: 1.6; }

/* Page header */
.page-header { text-align: center; margin-bottom: 2rem; }
.page-header h1 { font-size: 26px; margin-bottom: 0.5rem; }
.page-header p { color: #666; font-size: 15px; }

/* Cards */
.form-card, .result-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Form elements */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #1D9E75;
}

/* PIN input */
.pin-input {
  letter-spacing: 8px;
  font-size: 24px !important;
  font-weight: bold;
  text-align: center;
}

/* Link box */
.link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  word-break: break-all;
  gap: 10px;
  margin-bottom: 1rem;
}

.copy-btn {
  background: #1D9E75;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

/* Event banner */
.event-banner {
  background: #1D9E75;
  color: white;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.event-banner h2 { font-size: 22px; margin-bottom: 4px; }
.event-banner p { font-size: 14px; opacity: 0.85; }

/* Upload area */
.upload-area {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 2.5rem 1rem;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 1rem;
}

.upload-area:hover {
  border-color: #1D9E75;
  background: #f0faf6;
}

.upload-icon { font-size: 36px; margin-bottom: 10px; }
.upload-text { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 4px; }

/* Preview grid */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.preview-item { text-align: center; }

.preview-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
}

.preview-name {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Progress bar */
.progress-bar {
  width: 100%;
  background: #eee;
  border-radius: 8px;
  height: 10px;
  margin: 1rem 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #1D9E75;
  border-radius: 8px;
  transition: width 0.3s;
  width: 0%;
}

/* Gallery */
.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 3rem;
}

.gallery-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery-card:hover { transform: scale(1.02); }

.gallery-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.gallery-card-info { padding: 8px 10px; }
.gallery-uploader { font-size: 13px; font-weight: 600; color: #333; }
.gallery-time { font-size: 11px; color: #999; margin-top: 2px; }

/* Empty state */
.empty-box {
  text-align: center;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 2rem;
}

.empty-box h3 { font-size: 20px; margin-bottom: 0.5rem; }
.empty-box p { color: #666; font-size: 14px; }

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-content {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 600px;
  width: 90%;
  position: relative;
  text-align: center;
}

.lightbox-content img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
}

.lightbox-info p { font-size: 14px; color: #666; margin-bottom: 2px; }

/* PIN gate */
.pin-gate {
  max-width: 400px;
  margin: 3rem auto;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.pin-gate h2 { font-size: 22px; margin-bottom: 0.5rem; }
.pin-gate p { color: #666; font-size: 14px; margin-bottom: 1.5rem; }

/* Share buttons */
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.whatsapp-btn { background: #25D366; color: white; }
.sms-btn { background: #007AFF; color: white; }
.copy-share-btn { background: transparent; border: 1px solid #ddd !important; color: #333; }

/* Status messages */
.status-msg {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin: 1rem 0;
  text-align: center;
}

.status-success { background: #E1F5EE; color: #0F6E56; }
.status-error { background: #fdecea; color: #c0392b; }
.status-loading { background: #fff8e1; color: #856404; }