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

:root {
  --pink: #e2185b;
  --pink-dark: #c8105a;
  --yellow: #ffc72e;
  --yellow-dark: #ffb800;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-900: #111827;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--pink);
  color: var(--gray-900);
  min-height: 100vh;
  padding: 16px 16px 48px;
}

.container { max-width: 480px; margin: 0 auto; }

.logo { text-align: center; padding: 24px 0 20px; }
.logo h1 { font-size: 22px; font-weight: 700; color: white; }
.logo p { font-size: 14px; color: rgba(255,255,255,0.85); margin-top: 4px; }

.card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  margin-bottom: 14px;
}

.card-header {
  background: var(--yellow);
  color: var(--pink-dark);
  font-size: 18px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  margin: -20px -20px 16px -20px;
  border-radius: 14px 14px 0 0;
}

.card h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--pink); }
.card h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--gray-900); }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-600);
}

input[type=text], input[type=email], input[type=password],
input[type=date], input[type=time], input[type=number] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
  background: white;
  color: var(--gray-900);
}
input:focus { border-color: var(--pink); }

.radio-group { display: flex; gap: 10px; }
.radio-option {
  flex: 1;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  user-select: none;
}
.radio-option.selected { border-color: var(--pink); background: #fff0f5; }
.radio-option input { display: none; }
.radio-option .opt-label { font-size: 14px; font-weight: 700; }
.radio-option .opt-hint { font-size: 12px; color: var(--gray-600); margin-top: 2px; }

.role-group { display: flex; flex-direction: column; gap: 8px; }
.role-option {
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s;
  user-select: none;
}
.role-option.selected { border-color: var(--pink); background: #fff0f5; }
.role-option input { display: none; }
.role-option .role-name { font-size: 15px; font-weight: 700; }
.role-option .role-desc { font-size: 13px; color: var(--gray-600); }

.btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn + .btn { margin-top: 8px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--yellow); color: var(--gray-900); }
.btn-primary:hover:not(:disabled) { background: var(--yellow-dark); }
.btn-danger { background: #fee2e2; color: #991b1b; border: 1.5px solid #fca5a5; }
.btn-danger:hover:not(:disabled) { background: #fecaca; }
.btn-secondary { background: var(--gray-100); color: var(--gray-900); }
.btn-secondary:hover:not(:disabled) { background: var(--gray-200); }
.btn-sm { width: auto; display: inline-block; padding: 7px 14px; font-size: 14px; }
.btn-pink { background: var(--pink); color: white; }
.btn-pink:hover:not(:disabled) { background: var(--pink-dark); }

.session-card {
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.session-card:active { background: var(--gray-50); }
.session-card.selected { border-color: var(--pink); background: #fff0f5; }
.session-card.unavailable { opacity: 0.55; cursor: default; }
.session-title { font-weight: 700; font-size: 15px; }
.session-time { font-size: 14px; color: var(--gray-600); margin-top: 3px; }
.session-meta { margin-top: 8px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-pink { background: #ffe4ed; color: #be185d; }
.badge-blue { background: #dbeafe; color: #1e40af; }

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.alert a { color: inherit; font-weight: 700; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-info { background: #fff7ed; color: #92400e; border: 1px solid #fed7aa; }
.alert-waitlist { background: #ffe4ed; color: #be185d; border: 1px solid #fbcfe8; }

.hidden { display: none !important; }
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 16px 0; }

.event-meta p { font-size: 14px; color: var(--gray-600); margin-bottom: 4px; }

/* Admin */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.stat-card { background: white; border-radius: 12px; padding: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.12); text-align: center; }
.stat-card .value { font-size: 30px; font-weight: 700; color: var(--pink); }
.stat-card .label { font-size: 13px; color: var(--gray-600); margin-top: 2px; font-weight: 600; }

.row { display: flex; justify-content: space-between; align-items: center; }
.gap { display: flex; gap: 8px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 8px 10px; background: var(--gray-50); font-weight: 700; color: var(--gray-600); border-bottom: 2px solid var(--gray-200); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.session-item { border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.inline-form { border-top: 2px solid var(--gray-100); padding-top: 16px; margin-top: 14px; }
.two-col { display: flex; gap: 10px; }
.two-col .form-group { flex: 1; }

.quick-add { display: flex; gap: 8px; margin-bottom: 12px; }
