/* Theme matches the "Celebrating 40 Years" invitation:
   black, silver metallic, script headings, red and green ribbons. */
@font-face { font-family: "Kaushan Script"; font-weight: 400; font-display: swap; src: url(/assets/fonts/kaushan-script-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kaushan Script"; font-weight: 400; font-display: swap; src: url(/assets/fonts/kaushan-script-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Great Vibes"; font-weight: 400; font-display: swap; src: url(/assets/fonts/great-vibes-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Great Vibes"; font-weight: 400; font-display: swap; src: url(/assets/fonts/great-vibes-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1E9F; }
@font-face { font-family: "Source Sans 3"; font-weight: 300; font-display: swap; src: url(/assets/fonts/source-sans-3-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "Source Sans 3"; font-weight: 300; font-display: swap; src: url(/assets/fonts/source-sans-3-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1E9F; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(/assets/fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(/assets/fonts/source-sans-3-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1E9F; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(/assets/fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(/assets/fonts/source-sans-3-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1E9F; }

:root {
  --bg: #000;
  --panel: #121212;
  --panel2: #1a1a1a;
  --line: #2c2c2c;
  --ink: #e9e9e9;
  --muted: #9b9b9b;
  --silver: #c7c8ca;
  --silver-hi: #f4f4f4;
  --silver-grad: linear-gradient(180deg, #ffffff 0%, #d9dadc 38%, #8e9093 62%, #e6e7e8 100%);
  --green: #1d9a3f;
  --green-dark: #137a30;
  --red: #d2232f;
  --amber: #c98a12;
  --radius: 12px;
  --script: "Kaushan Script", "Brush Script MT", cursive;
  --fancy: "Great Vibes", "Kaushan Script", cursive;
  font-family: "Source Sans 3", "Myriad Pro", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
a { color: var(--silver-hi); }

.script { font-family: var(--script); }
.silver {
  background: var(--silver-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

header.bar {
  position: relative; overflow: hidden;
  background: #000 url(/assets/img/ribbon.webp) no-repeat right -40px center / 520px auto;
  border-bottom: 1px solid var(--line);
  padding: 14px 20px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
header.bar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 45%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.2)); pointer-events: none; }
header.bar > * { position: relative; }
header.bar .brand { display: flex; align-items: center; gap: 12px; }
header.bar .brand img { height: 44px; }
header.bar .brand .t { font-family: var(--fancy); font-size: 30px; line-height: 1; }
header.bar .brand small { display: block; font-family: "Source Sans 3", sans-serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--silver); margin-top: 4px; }
header.bar .who { font-size: 13px; color: var(--silver); background: rgba(0,0,0,.6); padding: 4px 8px; border-radius: 6px; }

main { max-width: 1200px; margin: 0 auto; padding: 20px; }

.btn {
  appearance: none; border: 0; border-radius: 8px; padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; background: var(--silver-grad); color: #111; white-space: nowrap; text-decoration: none; display: inline-block;
}
.btn:hover { filter: brightness(1.08); }
.btn.go { background: var(--green); color: #fff; }
.btn.go:hover { background: var(--green-dark); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid #3a3a3a; font-weight: 400; }
.btn.ghost:hover { border-color: var(--silver); }
.btn.danger { background: transparent; color: #ff6b73; border: 1px solid #5a2328; font-weight: 400; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: default; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--panel); border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--line); }
.tile .n { font-size: 32px; font-weight: 600; background: var(--silver-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile .l { font-size: 13px; color: var(--muted); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { flex: 1; min-width: 200px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--panel); color: var(--ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid #3a3a3a; background: transparent; color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.chip.on { background: var(--silver-grad); color: #111; border-color: transparent; font-weight: 600; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); background: var(--panel2); padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px 12px; border-bottom: 1px solid #222; vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr:hover td { background: #161616; }
td .sub { color: var(--muted); font-size: 12px; margin-top: 2px; word-break: break-word; }
td.actions { white-space: nowrap; text-align: right; }
td.actions .btn { margin-left: 4px; }
.tbl-input { width: 70px; padding: 6px 8px; border: 1px solid #3a3a3a; border-radius: 6px; font: inherit; font-size: 13px; background: #0c0c0c; color: var(--ink); }

.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.badge.paid { background: rgba(29,154,63,.18); color: #5fd17f; border: 1px solid rgba(29,154,63,.5); }
.badge.unpaid { background: transparent; color: var(--silver); border: 1px solid #555; }
.badge.in { background: var(--silver-grad); color: #111; }
.badge.plus { background: var(--red); color: #fff; }
.badge.err { background: rgba(210,35,47,.18); color: #ff8a90; border: 1px solid rgba(210,35,47,.5); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #f0f0f0; color: #111; padding: 12px 18px; border-radius: 10px; font-size: 14px; max-width: 90vw; z-index: 50; box-shadow: 0 6px 24px rgba(0,0,0,.6); }
.toast.bad { background: var(--red); color: #fff; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

@media (max-width: 760px) {
  header.bar { background-size: 360px auto; }
  table.list thead { display: none; }
  table.list tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.list td { display: block; border: 0; padding: 4px 14px; }
  td.actions { text-align: left; }
  td.actions .btn { margin: 4px 4px 0 0; }
}
