:root {
  --brand: #d4a373;
  --brand-text: #1a1a1a;
  --bg: #ffffff;
  --bg-surface: #f5f5f5;
  --text: #1a1a1a;
  --text-muted: #666666;
  --border: #e0e0e0;
  --danger: #d9534f;
  --success: #5cb85c;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --bg-surface: #2a2a2a;
    --text: #f0f0f0;
    --text-muted: #999999;
    --border: #3a3a3a;
  }
}

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

body {
  font-family:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--brand-text);
  border: none;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

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

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-large {
  padding: 20px 48px;
  font-size: 1.25rem;
  border-radius: 16px;
}

.btn-block {
  display: block;
  width: 100%;
}

input[type="email"],
input[type="text"],
select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group {
  margin-bottom: 16px;
}

.card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

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

.text-center {
  text-align: center;
}

.text-danger {
  color: var(--danger);
}

.text-success {
  color: var(--success);
}

.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-24 {
  margin-bottom: 24px;
}

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

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

.status-ok {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
}

.status-missed {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
}

.status-pending {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.install-banner {
  background: var(--bg-surface);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.slug-display {
  font-family: monospace;
  font-size: 1.1rem;
  background: var(--bg-surface);
  padding: 8px 12px;
  border-radius: 8px;
  word-break: break-all;
}

.slug-display.copyable {
  cursor: pointer;
  transition: background 0.15s;
}

.slug-display.copyable:active {
  background: var(--border);
}

.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.copy-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.checkin-success {
  text-align: center;
  padding: 32px 16px;
}

.checkin-success .checkmark {
  font-size: 3rem;
  margin-bottom: 12px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand);
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.alert-error {
  background: color-mix(in srgb, var(--danger) 15%, var(--bg));
  border: 1px solid var(--danger);
}

.alert-success {
  background: color-mix(in srgb, var(--success) 15%, var(--bg));
  border: 1px solid var(--success);
}

.hidden {
  display: none;
}
