
* { box-sizing: border-box }
body {
  margin: 0;
  min-height: 100vh;
  color: #d8dce0;
  background-color: #0b0c0d;
  background-image:
    url("/img/bg-lobby.png"),
    radial-gradient(circle at 50% 20%, #1b1f22 0%, #0b0c0d 72%);
  background-position: center top, center top;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  background-size: cover, cover;
  font: 13.5px/1.5 Tahoma, "Segoe UI", Arial, sans-serif;
}
header, main, footer { width: min(94%, 740px); margin: auto }
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #2b2e31 0%, #16181a 48%, #090a0b 52%, #121416 100%);
  border: 1px solid #373b3e;
  border-bottom: 1px solid #c97b15;
  box-shadow: inset 0 1px 0 #484c50, 0 8px 24px #000b;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #f3efe6;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f3bd52, #b87110);
  color: #161108;
  font: 900 16px/1 Impact, "Arial Narrow", sans-serif;
}
.brand strong {
  font: bold 20px/1 Bahnschrift, Impact, "Arial Narrow", sans-serif;
  letter-spacing: .04em;
  display: block;
}
.brand img.brand-emblem {
  display: block;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
}
.brand img.brand-logo {
  display: block;
  height: 26px;
  width: auto;
  border: 0;
  background: transparent;
}
nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center }
nav a {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  background: linear-gradient(180deg, #232629 0%, #131517 50%, #0b0c0d 54%, #151719 100%);
  border: 1px solid #383c40;
  color: #e4a138;
  text-decoration: none;
  font: 700 12px/1 Bahnschrift, "Arial Narrow", Tahoma, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
nav a:hover {
  background: linear-gradient(180deg, #31281c 0%, #1c160e 50%, #261b0d 100%);
  border-color: #d4881c;
  color: #ffba42;
}
.links a {
  color: #f3a426;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.links a:hover { text-decoration: underline }
main {
  padding: clamp(20px, 4vw, 32px);
  background: #070809;
  border: 6px solid #16181a;
  outline: 1px solid #373b3e;
  box-shadow: inset 0 0 0 1px #25282c, 0 22px 58px #000e;
}
h1 {
  margin: 0 0 16px;
  padding: 7px 12px;
  background: linear-gradient(180deg, #24272a 0%, #141618 100%);
  border: 1px solid #34383c;
  border-left: 3px solid #e69219;
  font: 700 clamp(18px, 3.5vw, 22px)/1.15 Bahnschrift, "Arial Narrow", Tahoma, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #f2f4f6;
}
p { margin: 0 0 12px; color: #c2c7cc }
p strong { color: #f2f4f6 }
form { max-width: 440px }
label {
  display: block;
  margin-top: 13px;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #d6dbe0;
}
input, select {
  width: 100%;
  margin-top: 5px;
  background: #0d0f11;
  color: #f2f4f6;
  border: 1px solid #35393e;
  box-shadow: inset 0 1px 3px #000a;
  padding: 9px 11px;
  font: 13.5px/1.3 Tahoma, "Segoe UI", sans-serif;
  border-radius: 0;
}
input:focus, select:focus { border-color: #e6951d; outline: none }
small { display: block; margin-top: 3px; color: #8c959e; font-size: 11.5px; text-transform: none; font-weight: 400 }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 18px 8px 0 0;
  min-height: 34px;
  padding: 8px 22px;
  border: 1px solid #ffe08a;
  color: #161003;
  background: linear-gradient(180deg, #f7c75d 0%, #df9b29 48%, #c57c14 52%, #e6a32e 100%);
  box-shadow: inset 0 1px 0 #fff1c2, 0 2px 8px #000a;
  font: 700 13px/1 Bahnschrift, "Arial Narrow", Tahoma, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
}
button:hover, .btn:hover { filter: brightness(1.08) }
button.secondary, .btn.secondary {
  background: linear-gradient(180deg, #292219 0%, #15110c 48%, #080604 52%, #1e1409 100%);
  color: #f59e1d;
  border-color: #c97b15;
  box-shadow: inset 0 0 8px rgba(245, 155, 25, 0.25);
  clip-path: none;
}
:focus-visible { outline: 2px solid #f4a222; outline-offset: 2px }
.note {
  border: 1px solid #8c5c16;
  border-left: 3px solid #f2a124;
  padding: 9px 12px;
  background: #1a150d;
  color: #f4e3c3;
  margin-bottom: 16px;
}
.error { border-color: #7c281f; border-left-color: #d94b3b; background: #221110; color: #f6cdc7 }
.links { margin-top: 20px; padding-top: 12px; border-top: 1px solid #1e2124; display: flex; flex-wrap: wrap; gap: 16px }
.card-box {
  padding: 14px 16px;
  background: #0d0f11;
  border: 1px solid #2b2f34;
  margin-bottom: 14px;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid #23272b;
}
.tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 30px;
  padding: 0 16px;
  background: linear-gradient(180deg, #2d3033 0%, #17191b 48%, #090a0b 52%, #141618 100%);
  border: 1px solid #3a3d41;
  box-shadow: inset 0 1px 0 #4a4e53;
  color: #c5c9cd;
  text-decoration: none;
  font: 700 12px/1 Bahnschrift, "Arial Narrow", Tahoma, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tabs a:hover { border-color: #a86c19; color: #f6a828 }
.tabs a.active {
  background: linear-gradient(180deg, #292219 0%, #15110c 48%, #080604 52%, #1e1409 100%);
  border-color: #c97b15;
  box-shadow: inset 0 0 8px rgba(245, 155, 25, 0.3), 0 0 4px rgba(245, 155, 25, 0.16);
  color: #f59e1d;
}
.turnstile-wrap { margin-top: 14px }
footer {
  margin-top: 6px;
  padding: 8px 14px 24px;
  display: flex;
  justify-content: space-between;
  color: #88919a;
  font-size: 12px;
}
footer a { color: #e4a138; text-decoration: none; font-weight: 700 }
footer a:hover { text-decoration: underline }
body.gate-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.gate-box {
  width: min(100%, 430px);
  padding: 24px 22px;
  background: #070809;
  border: 6px solid #16181a;
  outline: 1px solid #373b3e;
  box-shadow: inset 0 0 0 1px #25282c, 0 22px 60px #000e;
}
.gate-box h1 {
  margin: 0 0 10px;
  font-size: 19px;
}
.gate-box p {
  margin: 0 0 16px;
  color: #b8bfc6;
  font-size: 13px;
}
.gate-box .turnstile-wrap { margin: 0 0 14px }
.gate-btn { margin-top: 6px; width: 100% }
body.profile-page header, body.profile-page main, body.profile-page footer { width: min(95%, 860px) }
body.admin-page header, body.admin-page main, body.admin-page footer { width: min(96%, 980px) }
.profile-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #16191c 0%, #0d0f11 100%);
  border: 1px solid #32363b;
  border-left: 3px solid #f2a124;
  margin-bottom: 14px;
}
.profile-id {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-cls-icon {
  width: 38px;
  height: 38px;
  display: block;
  background: #0a0b0d;
  border: 1px solid #3c4045;
  padding: 4px;
}
.profile-callsign {
  margin: 0;
  font: 700 20px/1.1 Bahnschrift, Tahoma, sans-serif;
  color: #f3f5f7;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.profile-sub {
  margin-top: 3px;
  color: #96a0a9;
  font-size: 12.5px;
}
.profile-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.wr-bar {
  margin-top: 6px;
  height: 5px;
  background: #08090a;
  border: 1px solid #2b2f33;
  overflow: hidden;
}
.wr-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d88312 0%, #7ad642 100%);
}
.wr-fill.w-10 { width: 10% }
.wr-fill.w-25 { width: 25% }
.wr-fill.w-50 { width: 50% }
.wr-fill.w-75 { width: 75% }
.wr-fill.w-100 { width: 100% }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.stat-tile {
  padding: 10px 12px;
  background: #0d0f11;
  border: 1px solid #2b2f34;
}
.stat-tile span {
  display: block;
  color: #8c959e;
  font-size: 11.5px;
  margin-bottom: 4px;
}
.stat-tile strong {
  color: #f2f4f6;
  font-size: 14px;
}
.admin-section {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #1f2226;
}
.admin-section h2 {
  margin: 0 0 10px;
  padding: 6px 10px;
  background: linear-gradient(180deg, #222528 0%, #131517 100%);
  border: 1px solid #32363a;
  border-left: 3px solid #e69219;
  font: 700 14px/1.2 Bahnschrift, Tahoma, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #f2a124;
}
.admin-form { max-width: 560px }
.row-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: none;
}
.admin-section > .row-form { margin-top: 12px }
.row-form label { margin-top: 0; display: inline; font-weight: 400; text-transform: none; color: #c2c7cc }
.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 400;
  text-transform: none;
  color: #c2c7cc;
}
.inline-check input { width: auto; margin: 0 }
.table-wrap {
  overflow-x: auto;
  border: 1px solid #2b2f34;
  background: #0d0f11;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.admin-table th, .admin-table td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid #1d2023;
  vertical-align: middle;
}
.admin-table th {
  color: #e69b24;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  background: #16191c;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid #3d4146;
  background: #181a1d;
  color: #e7e5de;
}
.badge-ok { border-color: #4d8038; background: #162412; color: #90d868 }
.badge-warn { border-color: #9e6f24; background: #251c0e; color: #f3b23c }
.badge-err { border-color: #9c382c; background: #271311; color: #f29d93 }
.btn-sm {
  margin: 0;
  min-height: 26px;
  padding: 4px 10px;
  font-size: 11.5px;
  clip-path: none;
}
.btn-danger {
  background: linear-gradient(180deg, #a63427 0%, #6e1f16 100%);
  border-color: #d45546;
  color: #fff;
  box-shadow: none;
}
.input-sm {
  width: 150px;
  margin: 0;
  padding: 5px 8px;
  font-size: 12px;
}
.muted-note { color: #8c959e; font-size: 12.5px }
.mono { font-family: Consolas, monospace; font-size: 12px }
