:root {
  --navy: #0a2540;
  --navy-2: #123a63;
  --gold: #c8a24a;
  --gold-2: #e0c37a;
  --sea: #1b6ca8;
  --ink: #1c2530;
  --paper: #f5f7fa;
  --line: #dfe4ea;
  --ok: #1e874b;
  --bad: #c0392b;
  --shadow: 0 10px 30px rgba(10, 37, 64, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a { color: var(--sea); }

.topbar {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
}
.topbar img { height: 40px; width: auto; }
.topbar .brand { font-weight: 700; letter-spacing: 0.04em; font-size: 16px; }
.topbar .brand small { display: block; font-weight: 400; color: var(--gold-2); font-size: 11px; letter-spacing: 0.12em; }
.topbar .spacer { flex: 1; }
.topbar a { color: #fff; text-decoration: none; font-size: 14px; margin-left: 16px; opacity: 0.9; }
.topbar a:hover { opacity: 1; }

.wrap { max-width: 960px; margin: 0 auto; padding: 24px 18px 60px; }
.wrap.narrow { max-width: 460px; }

h1 { font-size: 22px; margin: 0 0 4px; }
.muted { color: #667; font-size: 14px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}

label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 4px; color: var(--navy-2); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 15px;
  background: #fff;
}
input[type=file] { font-size: 14px; margin-top: 4px; }

.checkline { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.checkline input { width: 18px; height: 18px; }
.checkline label { margin: 0; }

.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > div { flex: 1 1 220px; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: #23180a;
  border: none;
  border-radius: 9px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--gold-2); }
.btn.secondary { background: #eef1f5; color: var(--navy); }
.btn.secondary:hover { background: #e2e7ee; }
.btn.danger { background: #f6dedb; color: var(--bad); }
.btn.danger:hover { background: #f0cbc6; }
.btn.small { padding: 6px 12px; font-size: 13px; }

.err { background: #fdecea; color: var(--bad); border: 1px solid #f5c6c0; padding: 10px 12px; border-radius: 9px; margin: 12px 0; font-size: 14px; }
.notice { background: #eef6ff; border: 1px solid #cfe4fb; padding: 10px 12px; border-radius: 9px; margin: 12px 0; font-size: 14px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--navy-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.active { background: #e3f6ea; color: var(--ok); }
.badge.suspended { background: #fdecea; color: var(--bad); }
.badge.type { background: #eef1f5; color: var(--navy-2); }

.toolbar { display: flex; gap: 10px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }

/* ---------- Membership card ---------- */
.card-stage { max-width: 420px; margin: 20px auto; }
.mcard {
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 55%, var(--sea) 130%);
  box-shadow: var(--shadow);
  position: relative;
}
.mcard .head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 8px; }
.mcard .head img.logo { height: 42px; }
.mcard .head .club { font-size: 13px; letter-spacing: 0.14em; font-weight: 700; }
.mcard .head .club small { display: block; font-weight: 400; color: var(--gold-2); letter-spacing: 0.16em; font-size: 10px; }
.mcard .body { display: flex; gap: 16px; padding: 8px 18px 18px; align-items: center; }
.mcard .photo {
  width: 96px; height: 120px; border-radius: 10px; object-fit: cover;
  background: #dfe4ea; border: 2px solid var(--gold);
}
.mcard .photo.placeholder { display: flex; align-items: center; justify-content: center; color: #6f8199; font-size: 12px; text-align: center; }
.mcard .name { font-size: 22px; font-weight: 700; line-height: 1.15; }
.mcard .type { color: var(--gold-2); font-size: 12px; letter-spacing: 0.08em; margin-top: 2px; }
.mcard .num { margin-top: 10px; font-size: 13px; opacity: 0.9; }
.mcard .num b { letter-spacing: 0.08em; }
.mcard .status { margin: 0 18px; padding: 10px 12px; border-radius: 10px; font-weight: 700; text-align: center; }
.mcard .status.ok { background: rgba(30,135,75,0.25); color: #b8f2cf; border: 1px solid rgba(184,242,207,0.4); }
.mcard .status.susp { background: rgba(192,57,43,0.28); color: #ffd4cd; border: 1px solid rgba(255,212,205,0.5); font-weight: 600; font-size: 14px; }
.mcard .clock {
  margin: 12px 0 0; padding: 12px 18px; background: rgba(0,0,0,0.22);
  font-variant-numeric: tabular-nums; text-align: center; letter-spacing: 0.04em;
}
.mcard .clock .time { font-size: 20px; font-weight: 700; }
.mcard .clock .date { font-size: 12px; opacity: 0.85; }
.mcard .clock small { display:block; opacity: 0.6; font-size: 10px; margin-top: 4px; letter-spacing: 0.1em; }

/* ---------- Landing ---------- */
.hero { text-align: center; padding: 28px 0 10px; }
.hero img { height: 92px; }
.hero h1 { font-size: 26px; margin-top: 14px; }
.hero p { color: #556; max-width: 520px; margin: 8px auto; }
.cta { margin: 18px 0; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 8px 0; }
.steps li { position: relative; padding: 12px 12px 12px 48px; border-bottom: 1px solid var(--line); }
.steps li:before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 10px; top: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: #fff; text-align: center; line-height: 26px; font-weight: 700; font-size: 14px;
}
.platform-tabs { display: flex; gap: 8px; margin: 10px 0; }
.platform-tabs button {
  flex: 1; padding: 10px; border: 1px solid var(--line); background: #fff; border-radius: 9px;
  font-weight: 600; cursor: pointer; color: var(--navy);
}
.platform-tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.hidden { display: none; }

.subhead { margin-top: 26px; padding-bottom: 6px; border-bottom: 2px solid var(--gold); font-size: 16px; color: var(--navy); font-weight: 700; }
.thumb { width: 44px; height: 54px; border-radius: 6px; object-fit: cover; background: #e5e9ef; vertical-align: middle; }
