:root {
  --bg: #0b1f16;
  --panel: #12291d;
  --panel-light: #17331f;
  --accent: #d4af37;
  --accent-dark: #a9871f;
  --text: #eef2ee;
  --text-dim: #a9b8ae;
  --border: #24422f;
  --win: #2e7d4f;
  --loss: #7d2e2e;
  --tie: #7d752e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 24px 16px 64px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; border-bottom: 1px solid var(--border);
}
.topbar .brand { font-weight: 700; font-size: 1.1rem; }
.topbar .brand span { color: var(--accent); }
.topbar nav a { margin-left: 16px; color: var(--text-dim); text-decoration: none; font-size: 0.9rem; }
.topbar nav a:hover { color: var(--accent); }
h1 { font-size: 1.8rem; margin: 8px 0 4px; }
h2 { font-size: 1.3rem; margin: 32px 0 12px; color: var(--accent); }
.sub { color: var(--text-dim); margin-bottom: 24px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; margin-bottom: 20px;
}
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}
.pill.upcoming { background: #33301a; color: #e0d27a; }
.pill.active   { background: #1a3324; color: #7ae0a0; }
.pill.completed{ background: #2a2a2a; color: #aaa; }
.pill.paid     { background: #1a3324; color: #7ae0a0; }
.pill.pending  { background: #33301a; color: #e0d27a; }
.pill.failed   { background: #33201a; color: #e08a7a; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--text-dim); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
tr:hover td { background: var(--panel-light); }
.table-wrap { overflow-x: auto; }
.rank-1 td:first-child, .rank-2 td:first-child, .rank-3 td:first-child { color: var(--accent); font-weight: 700; }
.btn {
  display: inline-block; background: var(--accent); color: #14200f; font-weight: 700;
  padding: 10px 18px; border-radius: 8px; text-decoration: none; border: none; cursor: pointer;
  font-size: 0.95rem;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.small { padding: 5px 10px; font-size: 0.8rem; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs a {
  padding: 8px 14px; border-radius: 8px; text-decoration: none; color: var(--text-dim);
  border: 1px solid var(--border); font-size: 0.88rem;
}
.tabs a.active { background: var(--accent); color: #14200f; border-color: var(--accent); font-weight: 700; }
label { display: block; margin: 14px 0 6px; font-size: 0.9rem; color: var(--text-dim); }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: #0e1f15; color: var(--text); font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-top: 18px; }
legend { padding: 0 8px; color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.error-box { background: #33201a; border: 1px solid var(--loss); color: #f0b0a0; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; }
.success-box { background: #1a3324; border: 1px solid var(--win); color: #b6f0c8; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; }
.muted { color: var(--text-dim); font-size: 0.88rem; }
.radio-row { display: flex; gap: 16px; margin-top: 10px; }
.radio-row label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.95rem; color: var(--text); cursor: pointer; }
.radio-row input { width: auto; }
