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

:root {
  --bg: #0a0a0a;
  --fg: #ededed;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --border: rgba(255, 255, 255, 0.1);
  --border-20: rgba(255, 255, 255, 0.2);
  --border-40: rgba(255, 255, 255, 0.4);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, Arial, Helvetica, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Buttons */
.btn {
  display: inline-block;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
}
.btn-red { background: var(--red-600); color: #fff; border-color: var(--red-600); }
.btn-red:hover { background: var(--red-500); border-color: var(--red-500); }
.btn-outline { background: transparent; border-color: var(--border-20); color: var(--zinc-300); }
.btn-outline:hover { border-color: var(--border-40); color: var(--fg); }
.btn-outline-red { background: transparent; border-color: var(--red-600); color: var(--red-400); }
.btn-outline-red:hover { background: var(--red-600); color: #fff; }
.btn-sm { padding: 0.375rem 1rem; font-size: 0.875rem; font-weight: 500; }
.btn-full { width: 100%; display: block; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label { font-size: 0.875rem; color: var(--zinc-300); }
.form-input {
  width: 100%;
  background: var(--zinc-900);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s;
  font-size: 1rem;
}
.form-input::placeholder { color: var(--zinc-600); }
.form-input:focus { border-color: var(--red-600); }
.field-error { font-size: 0.75rem; color: var(--red-400); margin-top: 0.25rem; }

/* Alerts */
.alert-error {
  background: rgba(127, 29, 29, 0.4);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--red-400);
}
.alert-success {
  background: rgba(20, 83, 45, 0.4);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #86efac;
}

/* Card */
.card {
  border: 1px solid var(--border);
  background: var(--zinc-900);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

/* Empty state */
.empty-msg { color: var(--zinc-500); }

/* Badge */
.badge {
  display: inline-block;
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
}
.badge-exclusive { background: rgba(220, 38, 38, 0.2); color: var(--red-400); }


@font-face {
  font-family: 'Pieces of Eight';
  src: url('/fonts/pieces_of_eight/Pieces of Eight.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}