@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --gradient: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  --gradient-soft: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --pink: #db2777;
  --green: #10b981;
  --green-light: #d1fae5;
  --green-dark: #065f46;
  --orange: #f59e0b;
  --orange-light: #fef3c7;
  --orange-dark: #92400e;
  --red: #ef4444;
  --red-light: #fee2e2;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px -8px rgba(0,0,0,0.12);
}

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

body {
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-100);
  min-height: 100vh;
  direction: rtl;
  color: var(--gray-800);
  -webkit-font-smoothing: antialiased;
}

/* =================== HEADER =================== */
.hero-header {
  background: var(--gradient);
  padding: 40px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 160%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.hero-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--gray-100);
  border-radius: 24px 24px 0 0;
}
.hero-header h1 {
  color: white;
  font-size: 2em;
  font-weight: 900;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.hero-header .hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.1em;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.hero-header .hero-date {
  color: rgba(255,255,255,0.75);
  font-size: 0.9em;
  margin-top: 10px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* =================== CONTAINER =================== */
.container {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 16px 30px;
  position: relative;
  z-index: 2;
  margin-top: -20px;
}

/* =================== CARDS =================== */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
  border: 1px solid rgba(0,0,0,0.04);
}

/* =================== FORM =================== */
.form-group {
  margin-bottom: 16px;
  flex: 1;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.85em;
}
.form-group input,
.child-name {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  transition: all 0.2s ease;
  font-family: inherit;
  background: var(--gray-50);
  color: var(--gray-800);
}
.form-group input:focus,
.child-name:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  background: white;
}
.form-group input::placeholder,
.child-name::placeholder {
  color: var(--gray-400);
}
.form-row {
  display: flex;
  gap: 12px;
}

/* =================== CHILDREN SECTION =================== */
.children-section {
  margin: 20px 0;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.children-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.children-header label {
  font-weight: 700;
  color: var(--gray-700);
  font-size: 0.9em;
}
.btn-add {
  background: var(--purple);
  color: white;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82em;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s ease;
}
.btn-add:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}
.child-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  animation: slideDown 0.2s ease;
}
.child-entry .child-name { flex: 1; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.btn-remove {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--red);
  background: var(--red-light);
  color: var(--red);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.btn-remove:hover { background: var(--red); color: white; }

/* =================== PRICE DISPLAY =================== */
.price-display {
  background: var(--gradient);
  color: white;
  border-radius: var(--radius-lg);
  padding: 18px;
  margin: 20px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.price-display::before {
  content: '';
  position: absolute;
  top: -80%;
  right: -40%;
  width: 120%;
  height: 260%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.price-breakdown {
  font-size: 0.85em;
  opacity: 0.9;
  margin-bottom: 4px;
  line-height: 1.7;
  position: relative;
}
.price-total {
  font-size: 1.5em;
  font-weight: 800;
  position: relative;
}

/* =================== BUTTONS =================== */
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1.05em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { background: var(--gray-300); cursor: not-allowed; box-shadow: none; transform: none; }
.btn-submit.btn-green { background: var(--green); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35); }
.btn-submit.btn-green:hover { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45); }
.btn-submit.btn-gray { background: var(--gray-400); box-shadow: none; }
.btn-submit.btn-gray:hover { background: var(--gray-500); box-shadow: none; }

.btn-whatsapp {
  width: 100%;
  padding: 12px;
  background: white;
  color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  font-size: 0.95em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-whatsapp:hover { background: var(--green-light); }

/* =================== SUCCESS PAGE =================== */
.success-card { text-align: center; }
.success-card h1 { color: var(--green); margin-bottom: 6px; text-align: center; }
.success-card .subtitle-text { color: var(--gray-500); font-size: 0.95em; margin-bottom: 16px; }
.qr-container { margin: 16px 0; }
.qr-container img {
  max-width: 200px;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: white;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
.info-box {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
  text-align: right;
  border: 1px solid var(--gray-200);
}
.info-box p { margin: 6px 0; color: var(--gray-600); font-size: 0.92em; }
.info-box strong { color: var(--gray-800); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95em;
}
.back-link:hover { color: var(--purple-dark); }

/* =================== ADMIN =================== */
.login-card { margin-top: 80px; text-align: center; }
.login-icon {
  width: 72px;
  height: 72px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
}

/* Stats */
.stats-bar {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  border: 1px solid rgba(0,0,0,0.04);
}
.stat-item { flex: 1; text-align: center; padding: 12px 4px; border-radius: var(--radius); }
.stat-item .stat-value { font-size: 1.5em; font-weight: 800; color: var(--gray-900); }
.stat-item .stat-label { font-size: 0.72em; color: var(--gray-500); font-weight: 500; margin-top: 2px; }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: white;
  border-radius: var(--radius);
  padding: 4px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}
.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--gray-500);
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.tab-btn.active { background: var(--gradient); color: white; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.2s ease; }

/* Scanner */
.scanner-section { text-align: center; }
.btn-scan {
  padding: 14px 32px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}
.btn-scan:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45); }
#scannerContainer {
  margin: 14px auto;
  max-width: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
#scannerContainer video { width: 100%; border-radius: var(--radius-lg); }

.manual-input { display: flex; gap: 8px; margin-top: 14px; }
.manual-input input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: var(--gray-50);
  transition: all 0.15s ease;
}
.manual-input input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1); background: white; }
.manual-input button {
  padding: 11px 18px;
  background: var(--purple);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  font-size: 0.9em;
}
.manual-input button:hover { background: var(--purple-dark); }

/* Check-in Result */
.checkin-result {
  margin: 16px 0;
  padding: 22px;
  border-radius: var(--radius-lg);
  text-align: center;
  animation: scaleIn 0.25s ease;
}
.checkin-result.success { background: var(--green-light); border: 1.5px solid var(--green); color: var(--green-dark); }
.checkin-result.warning { background: var(--orange-light); border: 1.5px solid var(--orange); color: var(--orange-dark); }
.checkin-result.error { background: var(--red-light); border: 1.5px solid var(--red); color: #991b1b; }
.checkin-result h2 { margin-bottom: 10px; font-weight: 700; font-size: 1.15em; }
.checkin-result .details {
  text-align: right;
  margin-top: 12px;
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius);
  padding: 12px;
}
.checkin-result .details p { margin: 5px 0; font-size: 0.92em; }
.checkin-result .price-badge {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 1.2em;
  font-weight: 800;
  margin-top: 12px;
}

/* =================== TICKET CARDS =================== */
.ticket-list { display: flex; flex-direction: column; gap: 12px; }
.ticket-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow 0.15s ease;
}
.ticket-card:hover { box-shadow: var(--shadow-lg); }
.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 18px 12px;
  gap: 12px;
}
.ticket-info { flex: 1; }
.ticket-name {
  font-weight: 800;
  font-size: 1.05em;
  color: var(--gray-900);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ticket-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72em;
  font-weight: 700;
}
.ticket-badge.pending { background: var(--orange-light); color: var(--orange-dark); }
.ticket-badge.paid { background: #dbeafe; color: #1e40af; }
.ticket-badge.redeemed { background: #dcfce7; color: #065f46; }
.ticket-badge.partial-redeemed { background: #f5f3ff; color: #6d28d9; }

.ticket-meta { color: var(--gray-500); font-size: 0.85em; margin-top: 4px; line-height: 1.5; }
.ticket-meta span { margin-left: 10px; }
.ticket-qr { width: 80px; height: 80px; flex-shrink: 0; }
.ticket-qr img { width: 100%; height: 100%; border-radius: 8px; border: 1px solid var(--gray-200); }
.ticket-details { padding: 0 18px 12px; font-size: 0.88em; color: var(--gray-500); }
.ticket-details .phone-number { direction: ltr; display: inline-block; font-size: 0.95em; color: var(--gray-600); }
.ticket-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 14px;
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}
.ticket-actions .btn-ticket-action {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  border: 1.5px solid var(--green);
  background: white;
  color: var(--green);
  font-size: 0.88em;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.ticket-actions .btn-ticket-action:hover { background: var(--green-light); }

/* =================== EXISTING ORDERS =================== */
.existing-orders-card {
  border: 1.5px solid var(--purple);
  background: linear-gradient(135deg, #faf5ff, #fdf2f8);
}

/* =================== EVENT INFO =================== */
.event-info-card {
  border: 1.5px solid var(--gray-200);
  background: linear-gradient(135deg, #faf5ff 0%, #fff7ed 100%);
}
.event-details-grid { display: flex; flex-direction: column; gap: 6px; }
.event-detail-item { font-size: 0.92em; font-weight: 600; color: var(--gray-700); }

/* =================== PAY/UNPAY BUTTONS =================== */
.btn-pay {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  border: 1.5px solid var(--green);
  background: var(--green);
  color: white;
  font-size: 0.88em;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-pay:hover { background: #059669; border-color: #059669; }
.btn-unpay {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  border: 1.5px solid var(--orange);
  background: white;
  color: var(--orange-dark);
  font-size: 0.88em;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-unpay:hover { background: var(--orange-light); }

/* =================== ICON BUTTONS =================== */
.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.btn-icon:hover { border-color: var(--gray-300); background: var(--gray-50); }
.btn-icon.delete { border-color: var(--red); color: var(--red); background: var(--red-light); }
.btn-icon.delete:hover { background: var(--red); color: white; }
.btn-icon.edit { border-color: #3b82f6; color: #3b82f6; background: #eff6ff; }
.btn-icon.edit:hover { background: #3b82f6; color: white; }

/* =================== MODAL =================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: 26px;
  max-width: 100%;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.2s ease;
  position: relative;
}

/* Modal close X button */
.modal-close-x {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-500);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  z-index: 10;
  padding: 0;
  font-family: inherit;
}
.modal-close-x:hover {
  background: var(--gray-200);
  color: var(--gray-700);
  border-color: var(--gray-300);
}
@media (min-width: 768px) {
  .modal-content {
    width: 100%;
    padding: 32px;
  }
}

/* =================== EVENT CARDS (Admin) =================== */
.event-card {
  transition: all 0.15s ease;
}
.event-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

/* =================== EVENT CARDS (Public) =================== */
.event-card-link {
  transition: all 0.15s ease;
}
.event-card-link:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

/* =================== PARTIAL REDEMPTION BUTTONS =================== */
.btn-count-select {
  min-width: 60px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--purple);
  background: white;
  color: var(--purple);
  font-size: 1.2em;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.btn-count-select:hover {
  background: var(--purple);
  color: white;
  transform: scale(1.05);
}

/* =================== SEARCH BAR =================== */
.search-bar input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  background: white;
}

/* =================== EVENT TYPE TOGGLE =================== */
.event-type-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
}
.event-type-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: #faf5ff;
}
.event-type-btn.active-type {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(124,58,237,0.3);
}

/* =================== MEETING SLOT PICKER =================== */
.meeting-slot-picker {
  margin: 18px 0 4px;
}
.slot-picker-label {
  display: block;
  font-weight: 700;
  color: var(--purple);
  font-size: 1em;
  margin-bottom: 10px;
}
.slot-picker-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--purple);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: white;
  color: var(--gray-800);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%237c3aed' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
}
.slot-picker-select:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(124,58,237,0.18);
}
.slot-picker-select optgroup {
  font-weight: 700;
  color: var(--purple);
  background: #faf5ff;
  font-size: 0.9em;
}
.slot-picker-select option {
  font-weight: 500;
  color: var(--gray-800);
  padding: 6px 0;
}
.slot-picker-select option:disabled {
  color: var(--gray-400);
  text-decoration: line-through;
}

/* =================== TYPOGRAPHY / DESCRIPTION TEXT =================== */
#eventDescription {
  white-space: pre-line;
  line-height: 1.85;
  font-size: 0.97em;
  color: var(--gray-700);
}
.event-info-card {
  border: 1.5px solid var(--gray-200);
  background: linear-gradient(135deg, #faf5ff 0%, #fff7ed 100%);
}
.event-details-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.event-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.93em;
  font-weight: 600;
  color: var(--gray-700);
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(0,0,0,0.05);
}
.hero-header h1 {
  font-size: clamp(1.5em, 5vw, 2.4em);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.hero-header .hero-subtitle {
  font-size: clamp(0.95em, 3vw, 1.15em);
  line-height: 1.5;
  max-width: 420px;
  margin: 0 auto;
}
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
  border: 1px solid rgba(0,0,0,0.04);
}
@media (min-width: 480px) {
  .card { padding: 28px; }
}

/* Form labels — consistent styling */
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--gray-600);
  font-size: 0.83em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Public event card typography */
.event-card-link h3,
.event-card h3 {
  font-size: 1.15em;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Children section header */
.children-header label {
  font-size: 0.9em;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: none;
  letter-spacing: 0;
}

/* =================== TODAY'S EVENTS SECTION =================== */
.today-events-section {
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(219,39,119,0.05));
  border: 2px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 16px;
}
.section-title {
  font-weight: 800;
  font-size: 1.05em;
  color: var(--gray-700);
  margin-bottom: 12px;
  padding: 0 4px;
}
.today-title {
  color: var(--purple);
}

/* =================== FLOATING ACTION BUTTON =================== */
.btn-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(124,58,237,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all 0.2s;
}
.btn-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(124,58,237,0.5);
}
.btn-fab-inline {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(124,58,237,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-fab-inline:hover { transform: scale(1.08); }

/* =================== STATS BAR SECONDARY =================== */
.stats-bar-secondary {
  margin-top: -8px;
  margin-bottom: 16px;
  padding: 2px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}
.stats-bar-secondary .stat-item .stat-value { font-size: 1.1em; color: var(--gray-600); }
.stats-bar-secondary .stat-item .stat-label { font-size: 0.68em; color: var(--gray-400); }
.stat-item.stat-primary { background: rgba(124,58,237,0.04); }
.stat-item.stat-primary .stat-value { color: var(--purple); }

/* =================== STATUS OPTION BUTTONS =================== */
.btn-status-option {
  padding: 18px 12px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
  background: white;
  color: var(--gray-800);
  font-size: 0.9em;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  line-height: 1.5;
}
.btn-status-option:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* =================== SLIDE CONFIRM =================== */
.slide-confirm-track {
  position: relative;
  width: 100%;
  height: 56px;
  background: var(--red-light);
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid var(--red);
}
.slide-confirm-thumb {
  position: absolute;
  top: 4px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 2;
  touch-action: none;
  user-select: none;
}
.slide-confirm-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-weight: 700;
  font-size: 0.95em;
  pointer-events: none;
}

/* =================== UNPAY SECONDARY BUTTON =================== */
.btn-unpay-secondary {
  flex: none !important;
  padding: 5px 10px !important;
  font-size: 0.78em !important;
  border: 1px solid var(--gray-300) !important;
  color: var(--gray-500) !important;
  background: var(--gray-50) !important;
  border-radius: 6px !important;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}
