:root {
  --gold: #d4a017;
  --gold-dark: #a87c0f;
  --ink: #1f2430;
  --muted: #6b7280;
  --bg: #f7f6f2;
  --card: #ffffff;
  --border: #e6e2d8;
  --green: #2f9e58;
  --red: #c0392b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(90deg, #1f2430, #2c3244);
  color: white;
}

.topbar .brand {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: none;
}

.topbar nav a {
  color: #e8e6df;
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.92rem;
}

.topbar nav a:hover { color: var(--gold); }

.badge {
  background: var(--gold);
  color: #1f2430;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 4px;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.container-wide {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 18px;
}

h1 { font-size: 1.5rem; margin-top: 0; }
h2 { font-size: 1.15rem; margin-top: 0; }

.points-hero {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.points-hero .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold-dark);
}

label { display: block; font-size: 0.85rem; color: var(--muted); margin: 12px 0 4px; }

input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

textarea { resize: vertical; min-height: 90px; }

button, .btn {
  display: inline-block;
  background: var(--gold);
  color: #1f2430;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.92rem;
  text-decoration: none;
  margin-top: 14px;
}

button:hover, .btn:hover { background: var(--gold-dark); color: white; }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}

.btn-danger { background: var(--red); color: white; }
.btn-small { padding: 6px 12px; font-size: 0.82rem; margin-top: 0; }

.error {
  background: #fdecea;
  color: var(--red);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.success {
  background: #eaf7ef;
  color: var(--green);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.list-item {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.list-item:last-child { border-bottom: none; }

.meta { color: var(--muted); font-size: 0.82rem; }

.pill {
  display: inline-block;
  background: #f1eee3;
  color: var(--gold-dark);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

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

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; table-layout: auto; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
tr:hover td { background: #faf8f2; }
.table-scroll { overflow-x: auto; margin: -4px; padding: 4px; }
td .row, th .row { white-space: normal; }

form.inline { display: inline; }
.actions-cell { display: flex; gap: 6px; flex-wrap: nowrap; }
