/* ---- Total Sports & Fitness OTP — minimal, clean ---- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f6f8;
  color: #1f2937;
  line-height: 1.45;
}
body.centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.topbar {
  background: #0b3d91;
  color: white;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 28px;
  margin: 24px auto;
  max-width: 720px;
}
.card.narrow { max-width: 420px; }
.card.wide   { max-width: 1100px; }

h1 { margin: 0 0 6px; font-size: 22px; }
h2 { margin: 24px 0 12px; font-size: 16px; color: #374151; }
.muted { color: #6b7280; }
.small { font-size: 12px; }
.center { text-align: center; }

label {
  display: block;
  margin: 12px 0;
  font-weight: 500;
  font-size: 14px;
}
input[type="text"], input[type="password"], input[type="tel"], input[type="date"], select {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-top: 4px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: white;
}
input:focus, select:focus { outline: 2px solid #0b3d91; border-color: #0b3d91; }

button {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
button.primary    { background: #0b3d91; color: white; }
button.primary:hover    { background: #082c6b; }
button.primary:disabled { opacity: 0.6; cursor: not-allowed; }
button.secondary  { background: #e5e7eb; color: #1f2937; margin-left: 6px; }
button.secondary:hover { background: #d1d5db; }

.alert {
  padding: 10px 14px;
  border-radius: 6px;
  margin: 12px 0;
  font-size: 14px;
}
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-ok    { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-info  { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

.msg { min-height: 20px; margin-top: 8px; font-size: 14px; }
.msg:empty { display: none; }

.countdown { font-family: ui-monospace, monospace; color: #b45309; font-weight: 700; }

/* tables */
table.data {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}
table.data th, table.data td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
}
table.data th { background: #f9fafb; font-weight: 600; }
table.data tr:hover td { background: #f9fafb; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-verified { background: #dcfce7; color: #166534; }
.badge-expired  { background: #e5e7eb; color: #374151; }
.badge-failed   { background: #fee2e2; color: #991b1b; }
.badge-used     { background: #dbeafe; color: #1e40af; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin: 16px 0; }
.filters label { margin: 0; }
.filters input, .filters select { width: auto; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.stat {
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.stat-num   { font-size: 28px; font-weight: 700; color: #0b3d91; }
.stat-label { font-size: 13px; color: #6b7280; }

.row-form, .inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 8px 0;
}
.row-form input, .row-form select { width: auto; flex: 1 1 140px; }
.inline-form input { width: 130px; }

@media (max-width: 600px) {
  .card { padding: 20px; margin: 12px; }
  .topbar { flex-direction: column; align-items: flex-start; }
}
