/* ============================================================
   CLUB MATCH ADMIN — Standalone Styles
   Tee Time LLC / Tee Time Connect
   Brand refresh: Tee Time Orange palette
   ============================================================ */

:root {
  /* ── Tee Time Brand Colors ── */
  --orange:        #C8601C;   /* primary — Tee Time burnt orange */
  --orange-light:  #D4722A;
  --orange-mid:    #A84E14;   /* deeper orange for headers/buttons */
  --orange-deep:   #6B2E06;   /* dark orange — replaces black in most UI */
  --orange-xlight: #FEF0E4;

  --cream:         #F0C4A0;   /* secondary accent — peach/cream from logo */
  --cream-hover:   #DCA87E;
  --cream-light:   #FDF6EE;

  --dark:          #2A1200;   /* warm dark brown — only used where contrast demands near-black */

  /* ── Aliases used throughout components ── */
  --green:         var(--orange);
  --green-light:   var(--orange-light);
  --green-xlight:  var(--orange-xlight);
  --gold:          var(--cream);
  --gold-hover:    var(--cream-hover);
  --gold-light:    var(--cream-light);

  /* ── Neutrals ── */
  --bg:            #FAF5EE;   /* warm cream page background */
  --white:         #ffffff;
  --border:        #E8DDD0;
  --text:          #1C1410;   /* warm near-black */
  --muted:         #7A6A5A;   /* warm grey */

  /* ── Semantic ── */
  --danger:        #b32323;
  --danger-bg:     #fdecea;
  --warn:          #a36800;
  --warn-bg:       #fff8e1;
  --success:       #1a6e35;
  --success-bg:    #e6f4eb;
  --info:          #0b5fa5;
  --info-bg:       #e3f0fd;
}

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

html, body {
  margin: 0; padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Top Bar ─────────────────────────────────────────────── */
.top-bar {
  background: linear-gradient(to right, var(--orange-deep), var(--orange-mid));
  color: rgba(255,255,255,.75);
  font-size: .78em;
  padding: 6px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: .4px;
}
.top-bar strong { color: var(--cream); }

/* ── Nav ─────────────────────────────────────────────────── */
.navbar {
  background: linear-gradient(to right, var(--orange-deep) 0%, #3D1800 60%, var(--orange-mid) 100%);
  border-bottom: 3px solid var(--orange);
  padding: 0 28px;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.nav-brand {
  font-size: .95em;
  font-weight: 900;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 24px 14px 0;
  border-right: 1px solid rgba(255,255,255,.12);
  margin-right: 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand img {
  height: 36px;
  width: auto;
  display: block;
}
.nav-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-brand .brand-top {
  font-size: .65em;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(240,196,160,.65);
  text-transform: uppercase;
}
.nav-brand .brand-main {
  font-size: 1em;
  font-weight: 900;
  color: var(--cream);
  letter-spacing: 1px;
}
.nav-brand .brand-sub {
  color: var(--orange);
}
.nav-links { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; }
.nav-links li a {
  display: block;
  padding: 16px 18px;
  font-size: .85em;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .6px;
  transition: all .15s;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  text-decoration: none;
}
.nav-links li a:hover { color: var(--cream); border-bottom-color: rgba(240,196,160,.4); }
.nav-links li a.active { color: var(--cream); border-bottom-color: var(--orange); }

/* ── Page Hero — Tee Time "clubhouse" treatment ─────────────
   Dark espresso backdrop with an orb + halo tucked into the top-right corner,
   matching the Club Match front-page style so every admin page feels unified. */
.page-hero {
  background: #1F0E00;
  color: #F5E6D3;
  padding: 40px 28px 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: #F5EDDC url('golfball.png') center / cover no-repeat;
  opacity: 0.85;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 2px solid #E27A3D;
  transform: rotate(-20deg) scaleX(1.1) scaleY(0.5);
  opacity: 0.7;
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 {
  margin: 0 0 8px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.9em, 3.5vw, 2.5em);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  color: #F5E6D3;
  line-height: 1.05;
}
.page-hero p {
  margin: 12px 0 0;
  color: rgba(245, 230, 211, 0.75);
  font-size: 1rem;
  font-style: normal;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  max-width: 640px;
}

/* Handwritten kicker above admin h1s — sprinkled where useful */
.page-hero .script-kicker {
  display: block;
  font-family: 'Caveat', cursive;
  font-style: italic;
  font-weight: 700;
  color: #E27A3D;
  font-size: 1.4rem;
  margin-bottom: 4px;
  line-height: 1;
}

/* ── Container ───────────────────────────────────────────── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 28px; }
.page-body { padding: 28px 28px 60px; max-width: 1400px; margin: 0 auto; }

/* ── Cards — Tee Time rounded treatment ─────────────────── */
.card {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid #E8DDD0;
  box-shadow: 0 4px 20px rgba(31, 14, 0, 0.05);
  overflow: hidden;
}
.card-header {
  padding: 20px 28px;
  border-bottom: 1px solid #E8DDD0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FBF6EE;
}
.card-header h3, .card-header h4 {
  margin: 0;
  color: #6B2E06;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.08em;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
}
.card-body { padding: 26px 28px; }

/* ── Stat Strip — golf-ball "orb" cards ─────────────────────
   Each stat is a circular orb with a dimple pattern, matching the front
   page. Overlaps the page-hero bottom edge for a stitched-in feel. */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
  margin: -36px 0 32px;
  position: relative;
  z-index: 3;
}
/* When stat-strip lives INSIDE a page-hero (as on Inventory and the
   Portal), don't yank it upward — sit it beneath the h1/description. */
.page-hero .stat-strip { margin: 26px 0 0; }
.stat-box {
  aspect-ratio: 1;
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
  border-radius: 50%;
  background: #F5EDDC url('golfball.png') center / cover no-repeat;
  padding: 14px;
  box-shadow:
    inset -24px -34px 60px rgba(70, 30, 5, 0.22),
    inset 18px 22px 40px rgba(255, 255, 255, 0.95),
    0 24px 50px rgba(139, 58, 15, 0.28);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .25s;
}
.stat-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: none;
  background-size: 19px 19px, 19px 19px;
  mask-image: radial-gradient(circle, black 55%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle, black 55%, transparent 90%);
  pointer-events: none;
}
.stat-box:hover { transform: translateY(-4px) rotate(-3deg); }

/* Tint variants — colored dimples via inset shadow rather than border */
.stat-box.gold  { box-shadow: 0 16px 40px rgba(216, 168, 126, 0.35), inset 0 0 0 3px rgba(220, 168, 126, 0.35); }
.stat-box.red   { box-shadow: 0 16px 40px rgba(179, 35, 35, 0.25), inset 0 0 0 3px rgba(179, 35, 35, 0.28); }
.stat-box.blue  { box-shadow: 0 16px 40px rgba(11, 95, 165, 0.25), inset 0 0 0 3px rgba(11, 95, 165, 0.28); }

.stat-val {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 900;
  font-size: 2.2em;
  color: #8B3A0F;
  line-height: 1;
  position: relative;
  z-index: 2;
}
.stat-box.gold .stat-val  { color: #A8631F; }
.stat-box.red .stat-val   { color: var(--danger); }
.stat-box.blue .stat-val  { color: var(--info); }

.stat-key {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: #1F0E00;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 4px;
  line-height: 1.15;
  position: relative;
  z-index: 2;
  font-weight: 600;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  font-size: .88em; font-weight: 700;
  border-radius: 6px; border: none; cursor: pointer;
  transition: all .15s; text-decoration: none; white-space: nowrap;
  font-family: inherit;
}
.btn-green   { background: var(--orange); color: #fff; }
.btn-green:hover { background: var(--orange-light); color: #fff; text-decoration: none; }
.btn-gold    { background: var(--orange-deep); color: var(--cream); }
.btn-gold:hover { background: var(--orange-mid); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; text-decoration: none; }
.btn-ghost   { background: transparent; color: var(--muted); border: 2px solid var(--border); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8c1a1a; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .8em; }
.btn-lg { padding: 13px 24px; font-size: 1em; width: 100%; justify-content: center; }

/* ── Forms ───────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-weight: 700; font-size: .8em;
  color: var(--orange); text-transform: uppercase; letter-spacing: .4px;
  margin-bottom: 5px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px;
  border: 2px solid var(--border); border-radius: 6px;
  font-size: .93em; font-family: inherit;
  transition: border-color .15s; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange);
}
.field .helper { font-size: .78em; color: var(--muted); margin-top: 4px; }

.section-title {
  font-size: .72em; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--orange);
  padding: 18px 0 10px;
  border-top: 2px solid var(--bg);
  margin-top: 4px;
  display: flex; align-items: center; gap: 8px;
}
.step-badge {
  background: var(--orange); color: #fff;
  border-radius: 50%; width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8em; font-weight: 800; flex-shrink: 0;
}

.checkbox-card {
  display: block; padding: 10px 14px; margin-bottom: 8px;
  border: 2px solid var(--border); border-radius: 8px;
  cursor: pointer; font-size: .88em; transition: all .15s;
}
.checkbox-card input { margin-right: 8px; accent-color: var(--orange); }
.checkbox-card:has(input:checked) {
  border-color: var(--orange); background: var(--orange-xlight);
  font-weight: 600; color: var(--text);
}

/* ── Match Layout ────────────────────────────────────────── */
.match-layout {
  display: flex; gap: 28px; align-items: flex-start; padding: 28px 0;
}
.match-form-panel {
  width: 380px; flex-shrink: 0;
  background: var(--white); border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0,0,0,.08); overflow: hidden;
}
.panel-header {
  background: linear-gradient(135deg, var(--orange-deep), var(--orange));
  color: #fff; padding: 18px 22px;
  border-bottom: 3px solid var(--cream);
}
.panel-header h3 { margin: 0 0 3px; font-size: 1em; letter-spacing: .5px; color: #fff; }
.panel-header p  { margin: 0; font-size: .82em; opacity: .8; color: var(--cream); }
.panel-body { padding: 22px; }

.match-results { flex: 1; min-width: 0; }

/* ── Results Components ──────────────────────────────────── */
.results-empty {
  background: var(--white); border-radius: 12px; padding: 60px 30px;
  text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.06);
  color: var(--muted);
}

/* Priority / Equity Score */
.equity-card {
  background: var(--white); border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0,0,0,.08); margin-bottom: 18px; overflow: hidden;
}
.equity-header {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 26px; border-bottom: 2px solid var(--bg);
}
.score-circle {
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0; font-weight: 800;
}
.score-circle .num { font-size: 1.9em; line-height: 1; }
.score-circle .lbl { font-size: .62em; text-transform: uppercase; letter-spacing: .5px; }
.score-high   { background: var(--success-bg); color: var(--success); border: 3px solid #28a745; }
.score-medium { background: var(--warn-bg);    color: var(--warn);    border: 3px solid var(--cream-hover); }
.score-low    { background: var(--danger-bg);  color: var(--danger);  border: 3px solid #dc3545; }
.equity-detail h3 { margin: 0 0 8px; font-size: 1.1em; color: var(--text); }
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  background: var(--bg); border-radius: 6px; padding: 4px 11px;
  font-size: .8em;
}
.pill strong { color: var(--orange); }

/* Specs Card */
.specs-card {
  background: linear-gradient(135deg, var(--orange-deep) 0%, var(--orange) 100%);
  color: #fff; border-radius: 12px;
  padding: 20px 22px; margin-bottom: 18px;
  border: 2px solid rgba(240,196,160,.4);
}
.specs-card h4 { color: var(--cream); margin: 0 0 14px; font-size: .85em; text-transform: uppercase; letter-spacing: .8px; }
.specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.spec-item { background: rgba(255,255,255,.07); border-radius: 8px; padding: 12px 14px; text-align: center; }
.spec-item.hi { background: rgba(200,96,28,.3); border: 1px solid rgba(200,96,28,.6); }
.spec-val { display: block; font-size: 1.2em; font-weight: 800; line-height: 1.1; margin-bottom: 4px; }
.spec-key { font-size: .67em; opacity: .7; text-transform: uppercase; letter-spacing: .5px; }

/* Dignity Check */
.dignity-card {
  background: var(--white); border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0,0,0,.08); padding: 18px 22px; margin-bottom: 18px;
}
.dignity-card h4 { color: var(--orange); margin: 0 0 3px; font-size: .95em; text-transform: uppercase; letter-spacing: .5px; }
.dignity-card p  { color: var(--muted); font-size: .82em; margin: 0 0 14px; }
.dignity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.d-item { border-radius: 8px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: .86em; font-weight: 600; }
.d-ok   { background: var(--success-bg); color: var(--success); border: 1px solid #c3e6cb; }
.d-miss { background: var(--danger-bg);  color: var(--danger);  border: 1px solid #f5c6cb; }

/* Match Cards */
.match-card {
  background: var(--white); border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0,0,0,.08); overflow: hidden; margin-bottom: 14px;
}
.match-card-header {
  background: var(--bg); padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid var(--border);
}
.match-card-header h4 { color: var(--orange); margin: 0; font-size: .88em; text-transform: uppercase; letter-spacing: .5px; }
.count-badge { background: var(--orange); color: #fff; border-radius: 12px; padding: 2px 10px; font-size: .77em; font-weight: 700; }

.club-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.club-row:last-child { border-bottom: none; }
.club-id { font-size: .76em; font-weight: 700; color: var(--muted); min-width: 72px; }
.type-badge {
  background: var(--orange-xlight); color: var(--orange); border-radius: 6px;
  padding: 3px 10px; font-size: .8em; font-weight: 700; min-width: 76px; text-align: center;
  border: 1px solid rgba(200,96,28,.2);
}
.club-info { flex: 1; min-width: 0; }
.club-name { font-weight: 700; font-size: .9em; color: var(--text); }
.tag-row { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 3px; }

.tag {
  display: inline-block; background: #f0f0f0; border: 1px solid #ddd;
  border-radius: 4px; padding: 1px 7px; font-size: .74em; color: var(--muted);
}
.tag-gold  { border-color: var(--cream-hover); color: var(--cream-hover); font-weight: 600; }
.tag-green { border-color: var(--orange); color: var(--orange); font-weight: 600; }
.tag-warn  { border-color: #f0a030; color: #b07020; }
.tag-info  { border-color: var(--info); color: var(--info); }

.fit-col { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.fit-badge { border-radius: 20px; padding: 3px 11px; font-size: .76em; font-weight: 700; white-space: nowrap; }
.fit-exact { background: var(--success-bg); color: var(--success); }
.fit-close { background: var(--warn-bg); color: var(--warn); }
.fit-ok    { background: var(--info-bg); color: var(--info); }
.score-bar { display: flex; align-items: center; gap: 5px; font-size: .73em; color: var(--muted); }
.bar-track { width: 44px; height: 5px; background: #e0e0e0; border-radius: 3px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 3px; }

/* Status Badges */
.bin { display: inline-block; border-radius: 4px; padding: 2px 9px; font-size: .74em; font-weight: 700; }
.bin-A { background: #ede8e3; color: #6A5A50; }
.bin-B { background: var(--success-bg); color: var(--success); border: 1px solid #c3e6cb; }
.bin-C { background: var(--warn-bg); color: var(--warn); border: 1px solid #ffe082; }
.bin-D { background: var(--info-bg); color: var(--info); border: 1px solid #b3d4f5; }

/* Gaps */
.gaps-card {
  background: var(--white); border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0,0,0,.08); overflow: hidden; margin-bottom: 14px;
}
.gaps-header {
  background: var(--danger-bg); padding: 12px 20px; border-bottom: 2px solid #f5c6cb;
}
.gaps-header h4 { color: var(--danger); margin: 0; font-size: .88em; text-transform: uppercase; letter-spacing: .5px; }
.gaps-all-clear {
  background: var(--success-bg); border-radius: 10px; padding: 13px 18px;
  color: var(--success); font-weight: 600; font-size: .88em; margin-bottom: 14px;
}
.gap-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.gap-row:last-child { border-bottom: none; }
.gap-icon { font-size: 1em; min-width: 20px; text-align: center; }
.gap-label { flex: 1; font-size: .88em; font-weight: 600; color: var(--text); }
.gap-status { font-size: .76em; padding: 2px 10px; border-radius: 12px; font-weight: 700; }
.gs-missing { background: var(--danger-bg); color: var(--danger); }
.gs-wrong   { background: var(--warn-bg);   color: var(--warn);   }

/* Section heading between result blocks */
.result-heading {
  font-size: .72em; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted); margin: 20px 0 10px;
}

/* ── Inventory / Players Table ───────────────────────────── */
.toolbar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 14px 0; margin-bottom: 16px;
}
.toolbar h2 { margin: 0; font-size: 1em; color: var(--orange); flex: 1; }

.data-table { width: 100%; border-collapse: collapse; font-size: .87em; }
.data-table th {
  background: linear-gradient(to right, var(--orange-deep), var(--orange-mid));
  color: var(--cream); text-align: left;
  padding: 10px 14px; font-size: .78em; text-transform: uppercase;
  letter-spacing: .5px; border-bottom: 3px solid var(--orange);
  white-space: nowrap;
}
.data-table td { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--orange-xlight); }

.condition-badge { display: inline-block; border-radius: 4px; padding: 2px 8px; font-size: .78em; font-weight: 700; }
.cond-excellent { background: var(--success-bg); color: var(--success); }
.cond-verygood  { background: var(--info-bg); color: var(--info); }
.cond-good      { background: var(--warn-bg); color: var(--warn); }

.no-data { text-align: center; padding: 50px 20px; color: var(--muted); font-size: .9em; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); z-index: 1000;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 12px; width: 100%;
  max-width: 560px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
  animation: slideUp .2s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-header {
  background: linear-gradient(135deg, var(--orange-deep), var(--orange));
  color: #fff; padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center;
  border-radius: 12px 12px 0 0;
  border-bottom: 3px solid var(--cream);
}
.modal-header h3 { margin: 0; font-size: 1em; color: #fff; }
.modal-close { background: none; border: none; color: rgba(255,255,255,.7); font-size: 1.4em; cursor: pointer; line-height: 1; padding: 0; }
.modal-close:hover { color: #fff; }
.modal-body { padding: 22px; }
.modal-footer { padding: 14px 22px; border-top: 2px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ── Flash Message ───────────────────────────────────────── */
.flash {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--orange);
  color: #fff;
  border-left: 4px solid var(--cream);
  padding: 12px 20px; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(200,96,28,.4);
  font-weight: 600; font-size: .88em; z-index: 2000;
  transition: opacity .3s;
}
.flash.hidden { opacity: 0; pointer-events: none; }

/* ── Status Reference Panel ──────────────────────────────── */
.bin-ref { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 28px; }
.bin-ref-item {
  border-radius: 8px; padding: 14px; text-align: center;
  border: 2px solid; font-size: .84em;
}
.bin-ref-item .letter { font-size: 1.6em; font-weight: 800; display: block; line-height: 1; margin-bottom: 4px; }
.bin-ref-item .name { font-weight: 700; display: block; }
.bin-ref-item .desc { color: var(--muted); font-size: .85em; }
.bin-ref-A { border-color: #bbb; background: #f8f5f2; }
.bin-ref-B { border-color: #28a745; background: var(--success-bg); }
.bin-ref-C { border-color: var(--cream-hover); background: var(--cream-light); }
.bin-ref-D { border-color: var(--info); background: var(--info-bg); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .match-layout { flex-direction: column; }
  .match-form-panel { width: 100%; }
  .bin-ref { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .page-hero h1 { font-size: 1.45em; }
  .page-body { padding: 18px 14px 40px; }
  .navbar { padding: 0 14px; }
  .nav-links li a { padding: 12px 10px; font-size: .8em; }
  .stat-strip { grid-template-columns: repeat(2,1fr); }
  .specs-grid { grid-template-columns: repeat(3,1fr); }
  .club-row { flex-wrap: wrap; }
}

@media print {
  .top-bar, .navbar, .match-form-panel, .toolbar, .btn, .modal-overlay { display: none !important; }
  .match-results { width: 100%; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ── Request Badges (Requests page) ──────────────────────── */
.req-badge {
  display: inline-block; border-radius: 20px; padding: 3px 11px;
  font-size: .75em; font-weight: 700; white-space: nowrap;
}
.req-trade       { background: #e3f0fd; color: #0b5fa5; border: 1px solid #b3d4f5; }
.req-donate      { background: var(--success-bg); color: var(--success); border: 1px solid #c3e6cb; }
.req-putting-green { background: var(--orange-xlight); color: var(--orange); border: 1px solid rgba(200,96,28,.25); }

.req-status-new       { background: #ede8e3; color: #5A4A3A; }
.req-status-reviewing { background: var(--warn-bg); color: var(--warn); }
.req-status-fulfilled { background: var(--success-bg); color: var(--success); }
.req-status-declined  { background: var(--danger-bg); color: var(--danger); }

/* Context note display under status cell */
.ctx-note {
  font-size: .74em; color: var(--muted); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px;
}
.ctx-bag { font-size: .74em; color: var(--info); margin-top: 3px; font-weight: 600; }

/* ── Sortable Table Headers ──────────────────────────────── */
th[data-col] { cursor: pointer; user-select: none; }
th[data-col]:hover { opacity: .85; }
th[data-col]::after { content: ' ⇅'; opacity: .3; font-size: .7em; font-weight: 400; }
th[data-col].sort-asc::after  { content: ' ▲'; opacity: 1; font-weight: 700; }
th[data-col].sort-desc::after { content: ' ▼'; opacity: 1; font-weight: 700; }

/* ── Inline Note Editor ──────────────────────────────────── */
.note-edit-btn {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: .78em; padding: 0 2px; opacity: 0; transition: opacity .15s;
  vertical-align: middle; line-height: 1;
}
td:hover .note-edit-btn { opacity: 1; }
.inline-edit-wrap { margin-top: 5px; }
.inline-edit-wrap textarea {
  width: 100%; min-width: 130px; font-size: .8em;
  border: 1.5px solid var(--orange); border-radius: 4px;
  padding: 4px 6px; resize: vertical; font-family: inherit; display: block;
}
.inline-edit-actions { display: flex; gap: 4px; margin-top: 3px; }
.inline-edit-actions button {
  font-size: .75em; padding: 2px 8px; border-radius: 3px;
  cursor: pointer; border: none; font-weight: 600;
}
.inline-save   { background: var(--orange); color: #fff; }
.inline-cancel { background: var(--border); color: var(--text); }
