:root {
  --primary: #0b1a33;
  --accent: #d4a33a;
  --bg: #f3f5f9;
  --card: #ffffff;
  --ink: #16202e;
  --muted: #5d6b7e;
  --line: #dde3ec;
  --danger: #b3261e;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.5;
}
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.envbar {
  background: #fff3cd; color: #5c4400; text-align: center;
  font-size: .85rem; padding: .35rem 1rem; border-bottom: 1px solid #ecd58a;
}

header.top {
  background: var(--primary); color: #fff;
  border-bottom: 4px solid var(--accent);
}
.top-inner {
  max-width: 980px; margin: 0 auto; padding: .9rem 1rem;
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: .02em; font-size: 1.1rem; }
.brand img { height: 36px; width: auto; border-radius: 4px; }
.brand .sep { opacity: .5; font-weight: 400; }
.brand .biz { font-weight: 400; opacity: .85; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.chip {
  background: rgba(255,255,255,.14); border-radius: 999px; padding: .2rem .7rem; font-size: .8rem;
}

main { max-width: 980px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
h1 { font-size: 1.6rem; margin: .2rem 0 .3rem; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; }
.lead { color: var(--muted); margin: 0 0 1.2rem; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: 0 1px 2px rgba(11,26,51,.05);
}
.narrow { max-width: 460px; margin: 3rem auto; }
.center { text-align: center; }

label { display: block; font-weight: 600; margin-bottom: .35rem; }
input[type=email] {
  width: 100%; padding: .75rem .85rem; font-size: 1rem;
  border: 1px solid #b9c3d3; border-radius: 10px; background: #fff; color: var(--ink);
}
input[type=text], select {
  padding: .6rem .75rem; font-size: 1rem; max-width: 100%;
  border: 1px solid #b9c3d3; border-radius: 10px; background: #fff; color: var(--ink);
}
h3 { font-size: 1.02rem; }
button, .btn {
  display: inline-block; cursor: pointer; border: 0; border-radius: 10px;
  padding: .75rem 1.1rem; font-size: 1rem; font-weight: 600;
  background: var(--primary); color: #fff; text-decoration: none;
}
button.secondary, .btn.secondary { background: transparent; color: inherit; border: 1px solid currentColor; }
header.top button.secondary { color: #fff; padding: .4rem .8rem; font-size: .85rem; }
button:disabled { opacity: .55; cursor: default; }
.form-row { margin-top: 1rem; }
.hint { color: var(--muted); font-size: .9rem; margin-top: .8rem; }
.error { color: var(--danger); font-weight: 600; margin-top: .8rem; }
.ok { color: #1b6b3a; font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.tile {
  display: flex; flex-direction: column; gap: .35rem; text-align: left;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem; min-height: 150px;
  box-shadow: 0 1px 2px rgba(11,26,51,.05); text-decoration: none;
}
.tile:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(11,26,51,.12); }
.tile .icon { font-size: 1.8rem; line-height: 1; }
.tile .name { font-size: 1.1rem; font-weight: 700; }
.tile .blurb { color: var(--muted); font-size: .92rem; flex: 1; }
.badge { align-self: flex-start; font-size: .75rem; font-weight: 700; padding: .12rem .55rem; border-radius: 999px; background: #eef1f6; color: var(--muted); }
.badge.warn { background: #fff3cd; color: #5c4400; }
.badge.soon { background: #e8eefc; color: #234; }

.back { background: none; color: var(--primary); padding: 0; font-weight: 600; margin-bottom: 1rem; }
.club-list { display: grid; gap: .7rem; margin-top: 1rem; }
.club-list button { text-align: left; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.club-list button:hover { border-color: var(--accent); }

footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 1.5rem 1rem 2.5rem; }

@media (max-width: 520px) {
  h1 { font-size: 1.35rem; }
  .top-actions { margin-left: 0; width: 100%; }
}
