:root {
  --hof-green: #0d2a1f;
  --hof-green-2: #14382a;
  --hof-gold: #c9a54c;
  --hof-gold-soft: #f5ecd6;
  --hof-ink: #1d2622;
  --hof-muted: #6b7a72;
  --hof-bg: #f6f5f1;
  --hof-line: #e3e0d6;
  --bs-body-bg: var(--hof-bg);
  --bs-body-color: var(--hof-ink);
  --bs-link-color-rgb: 20, 92, 64;
  --bs-border-color: var(--hof-line);
}

body { background: var(--hof-bg); font-size: .925rem; }

.hof-nav { background: var(--hof-green); border-bottom: 3px solid var(--hof-gold); }
.hof-nav .navbar-brand { color: #f4ead2; font-family: Georgia, 'Times New Roman', serif; letter-spacing: .04em; }
.hof-nav .navbar-brand small { color: var(--hof-gold); font-family: system-ui, sans-serif; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; display: block; line-height: 1; }
.hof-nav .nav-link { color: #cfd8d2; border-radius: 6px; padding: .4rem .8rem !important; }
.hof-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.hof-nav .nav-link.active { color: var(--hof-green); background: var(--hof-gold); font-weight: 600; }
.hof-nav .navbar-toggler { border-color: rgba(255,255,255,.3); }
.hof-nav .navbar-toggler-icon { filter: invert(1); }
.hof-user { color: #cfd8d2; font-size: .85rem; }

.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem; margin: 1.5rem 0 1rem; }
.page-head h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 1.6rem; margin: 0; color: var(--hof-green); }
.page-head .sub { color: var(--hof-muted); font-size: .9rem; }

.card { border-color: var(--hof-line); border-radius: 10px; box-shadow: 0 1px 2px rgba(13,42,31,.04); }
.card-header { background: #fff; border-bottom-color: var(--hof-line); font-weight: 600; color: var(--hof-green); }
.section-title { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hof-muted); margin-bottom: .5rem; }

.btn-hof { background: var(--hof-green); color: #fff; border-color: var(--hof-green); }
.btn-hof:hover, .btn-hof:focus { background: var(--hof-green-2); color: #fff; border-color: var(--hof-green-2); }
.btn-gold { background: var(--hof-gold); color: var(--hof-green); border-color: var(--hof-gold); font-weight: 600; }
.btn-gold:hover { background: #b8943d; color: var(--hof-green); border-color: #b8943d; }

/* Stat tiles */
.stat { background: #fff; border: 1px solid var(--hof-line); border-radius: 10px; padding: .85rem 1rem; height: 100%; text-decoration: none; color: inherit; display: block; transition: border-color .15s, box-shadow .15s; }
a.stat:hover { border-color: var(--hof-gold); box-shadow: 0 2px 8px rgba(201,165,76,.18); }
.stat .label { font-size: .75rem; color: var(--hof-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.stat .value { font-size: 1.75rem; font-weight: 700; color: var(--hof-green); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .note { font-size: .78rem; color: var(--hof-muted); }
.stat.accent { border-left: 4px solid var(--hof-gold); }
.stat.good .value { color: #1c7c4f; }
.stat.bad .value { color: #a5432f; }

.bar { height: 8px; background: #ece9e0; border-radius: 4px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--hof-gold); }

/* Status chips */
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.chip-attending { background: #e3f3ea; color: #1c6b45; border-color: #bfe3cf; }
.chip-notattending { background: #f8e6e1; color: #8f3a27; border-color: #efc9be; }
.chip-awaiting { background: #fbf3df; color: #7d5d12; border-color: #f0dfae; }
.chip-notsent { background: #eef0ef; color: #5b6762; border-color: #dde1df; }
.chip-winner { background: var(--hof-green); color: var(--hof-gold); }
.chip-general { background: #eef0ef; color: #44514b; }
.chip-flag { background: #fff0e5; color: #9a4b0d; border-color: #f4d3b8; }
.chip-muted { background: transparent; color: var(--hof-muted); border-color: var(--hof-line); }
.chip-sent, .chip-delivered, .chip-read { background: #e3f3ea; color: #1c6b45; }
.chip-failed { background: #f8e6e1; color: #8f3a27; }
.chip-queued, .chip-sending { background: #fbf3df; color: #7d5d12; }
.chip-skipped, .chip-recorded { background: #eef0ef; color: #5b6762; }

/* Guest list */
.filters { background: #fff; border: 1px solid var(--hof-line); border-radius: 10px; padding: .75rem; }
.filters .form-select, .filters .form-control { font-size: .85rem; }
.guest-table { background: #fff; border: 1px solid var(--hof-line); border-radius: 10px; overflow: hidden; }
.guest-table table { margin: 0; }
.guest-table thead th { background: #faf9f5; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hof-muted); border-bottom: 1px solid var(--hof-line); white-space: nowrap; }
.guest-table td { vertical-align: middle; border-color: #efede6; }
.guest-table tr.row-link { cursor: pointer; }
.guest-table tr.row-link:hover td { background: #fbfaf6; }
.guest-name { font-weight: 600; color: var(--hof-green); }
.guest-sub { color: var(--hof-muted); font-size: .8rem; }
.quick-rsvp .btn { padding: .15rem .45rem; font-size: .75rem; }
.bulk-bar { position: sticky; bottom: 0; z-index: 5; background: var(--hof-green); color: #fff; border-radius: 10px 10px 0 0; padding: .6rem 1rem; display: none; box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
.bulk-bar.show { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* Guest page */
.rsvp-switch .btn-check + .btn { min-width: 9rem; }
.rsvp-switch .btn-check:checked + .btn-outline-success { background: #1c7c4f; color: #fff; }
.rsvp-switch .btn-check:checked + .btn-outline-danger { background: #a5432f; color: #fff; }
.rsvp-switch .btn-check:checked + .btn-outline-secondary { background: #6b7a72; color: #fff; }
.history { font-size: .82rem; }
.history td { padding: .35rem .5rem; }
.copy-field { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }
.req::after { content: " *"; color: #a5432f; }
.help-grey { color: #8a948f; font-size: .78rem; }
.field-error { color: #a5432f; font-size: .8rem; margin-top: .2rem; }

.preview-frame { width: 100%; height: 640px; border: 1px solid var(--hof-line); border-radius: 10px; background: #06140f; }
.wa-bubble { background: #dcf8c6; border-radius: 10px; padding: .6rem .75rem; max-width: 340px; white-space: pre-wrap; font-size: .85rem; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-bubble img { max-width: 100%; border-radius: 6px; margin-bottom: .4rem; display: block; }
.wa-wrap { background: #ece5dd; border-radius: 10px; padding: 1rem; }

.flash { border-radius: 10px; }
.table-sm td, .table-sm th { padding: .4rem .5rem; }
.import-table td { font-size: .82rem; }
.import-table tr.err td { background: #fdf1ee; }
.import-table tr.dup td { background: #fff7ec; }

@media (max-width: 767.98px) {
  .page-head h1 { font-size: 1.35rem; }
  .hide-sm { display: none !important; }
}
