:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0a0a0d;
  color: #f5f5f7;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  padding: 24px 16px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 0%, #24242b 0%, #121216 42%, #0a0a0d 78%);
  line-height: 1.5;
}
a { color: inherit; }
:focus-visible { outline: 2px solid #fffc00; outline-offset: 3px; }
.card {
  width: 100%;
  max-width: 440px;
  padding: 26px 22px 24px;
  border: 1px solid #303036;
  border-radius: 22px;
  background: #1b1b20;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .36);
}
.header { margin-bottom: 26px; }
.brand { font-size: 21px; font-weight: 800; letter-spacing: -.045em; text-decoration: none; }
.brand-mark {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 5px;
  border-radius: 5px;
  background: #fffc00;
  vertical-align: 1px;
}
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 28px; }
.progress span { height: 5px; border-radius: 99px; background: #393940; }
.progress .active { background: #fffc00; }
.eyebrow { margin: 0 0 8px; color: #fffc00; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin: 0 0 12px; font-size: clamp(26px, 7vw, 34px); line-height: 1.16; letter-spacing: -.04em; }
p { margin: 0 0 16px; }
.muted, small { color: #b8b8c1; }
.choices { display: grid; gap: 12px; margin-top: 24px; }
.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid #484850;
  border-radius: 14px;
  background: #24242a;
  text-decoration: none;
}
.choice:hover, .choice:focus-visible { border-color: #fffc00; }
.choice strong, .choice small { display: block; }
.choice small { margin-top: 2px; font-size: 12px; }
.flag { font-size: 27px; }
.arrow { margin-left: auto; color: #fffc00; font-size: 24px; }
.instruction {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 15px;
  border: 1px solid #484850;
  border-radius: 12px;
  background: #121216;
}
.instruction span { color: #b8b8c1; }
.instruction strong { color: #fffc00; font-size: 20px; letter-spacing: .02em; }
.price { margin-top: 24px; }
.notice { padding: 13px 15px; border-left: 3px solid #fffc00; border-radius: 4px; background: #28282d; color: #d0d0d7; font-size: 13px; }
.button {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  margin-top: 22px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #fffc00;
  color: #0a0a0d;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: #eeeb00; }
button.button { width: 100%; border: 0; font: inherit; font-weight: 800; cursor: pointer; }
label { display: block; margin: 20px 0 8px; font-weight: 700; }
input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #484850;
  border-radius: 12px;
  background: #121216;
  color: #f5f5f7;
  font: inherit;
}
input:focus { border-color: #fffc00; }
input[aria-invalid="true"] { border-color: #ff7777; }
.code-form { margin-top: 30px; padding-top: 10px; border-top: 1px solid #303036; }
.hint { margin: 0 0 10px; color: #b8b8c1; font-size: 13px; }
.feedback { margin: 12px 0 0; min-height: 1.5em; color: #fffc00; font-size: 13px; }
.feedback.success {
  margin-top: 20px;
  padding: 18px;
  border: 2px solid #fffc00;
  border-radius: 14px;
  background: #34340f;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}
input[aria-invalid="true"] + .button + .feedback { color: #ff9a9a; }
.back { display: block; margin-top: 18px; color: #d0d0d7; text-align: center; font-size: 14px; }
footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid #303036; color: #a8a8b2; font-size: 12px; text-align: center; }
footer p { margin: 0 0 4px; }
@media (min-width: 480px) { .card { padding: 32px; } }
.admin-card { max-width: 1100px; }
.admin-error { padding: 12px 14px; border: 1px solid #ff7777; border-radius: 10px; color: #ffb0b0; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-heading h1 { margin: 0; }
.logout { padding: 9px 12px; border: 1px solid #55555d; border-radius: 9px; background: transparent; color: #f5f5f7; font: inherit; cursor: pointer; }
.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 26px 0; }
.admin-stats div { padding: 16px 10px; border: 1px solid #393940; border-radius: 12px; background: #121216; text-align: center; }
.admin-stats strong, .admin-stats span { display: block; }
.admin-stats strong { color: #fffc00; font-size: 28px; }
.admin-stats span { color: #b8b8c1; font-size: 12px; }
.admin-card h2 { margin: 24px 0 12px; font-size: 20px; letter-spacing: -.03em; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 12px 10px; border-bottom: 1px solid #393940; white-space: nowrap; }
th { color: #b8b8c1; font-size: 12px; }
td code { color: #fffc00; font-size: 13px; }
.reviews { margin-top: 34px; padding-top: 24px; border-top: 1px solid #393940; }
.reviews-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reviews h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.demo-badge { padding: 4px 8px; border: 1px solid #fffc00; border-radius: 99px; color: #fffc00; font-size: 11px; font-weight: 700; white-space: nowrap; }
.reviews-note { margin: 10px 0 16px; color: #b8b8c1; font-size: 12px; }
.review-list { display: grid; gap: 10px; }
.review { margin: 0; padding: 15px; border: 1px solid #393940; border-radius: 12px; background: #24242a; }
.review p { margin: 0 0 10px; font-size: 14px; }
.review footer { margin: 0; padding: 0; border: 0; text-align: left; font-size: 12px; }
.more-codes { margin-top: 22px; font-size: 13px; }
.code-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.code-heading label { margin: 20px 0 8px; }
.add-code { width: 34px; height: 34px; border: 1px solid #fffc00; border-radius: 9px; background: #fffc00; color: #0a0a0d; font-size: 24px; font-weight: 700; line-height: 1; cursor: pointer; }
.add-code:disabled { opacity: .45; cursor: not-allowed; }
.code-fields { display: grid; gap: 10px; }
.code-row { display: flex; align-items: center; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }
.remove-code { width: 40px; height: 40px; flex: none; border: 1px solid #65656c; border-radius: 9px; background: transparent; color: #f5f5f7; font-size: 22px; cursor: pointer; }
.extra-cost { margin-top: 12px; }
.admin-notice { padding: 12px 15px; border: 1px solid #fffc00; border-radius: 10px; background: #34340f; }
.rate-grid { display: grid; gap: 10px; }
.rate-grid div { padding: 14px; border: 1px solid #393940; border-radius: 10px; }
.rate-grid strong, .rate-grid span { display: block; }
.rate-grid span { color: #b8b8c1; font-size: 13px; }
.status { display: inline-block; padding: 4px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.status.pending { background: #4a3c17; color: #ffdf79; }
.status.validated { background: #173d2a; color: #9be6ba; }
.actions { min-width: 240px; }
.entry-action { display: inline-flex; align-items: center; gap: 6px; margin: 2px 6px 2px 0; }
.entry-action select { min-height: 34px; padding: 5px; border: 1px solid #55555d; border-radius: 7px; background: #121216; color: #f5f5f7; }
.entry-action button { min-height: 34px; padding: 5px 9px; border: 0; border-radius: 7px; background: #fffc00; color: #0a0a0d; font-weight: 700; cursor: pointer; }
.entry-action button.danger { border: 1px solid #a85858; background: transparent; color: #ffb0b0; }
.delete-confirm { display: inline-block; vertical-align: middle; }
.delete-confirm summary { color: #ffb0b0; cursor: pointer; font-size: 12px; }
.delete-confirm .entry-action { display: flex; margin-top: 8px; }
.person-grid { display: grid; gap: 10px; }
.person-grid div { padding: 18px; border: 1px solid #393940; border-radius: 12px; background: #121216; }
.person-grid h3 { margin: 0 0 12px; font-size: 18px; }
.person-grid strong, .person-grid span, .person-grid small { display: block; }
.person-grid strong { color: #fffc00; font-size: 24px; }
.person-grid span { font-weight: 700; }
.person-grid small { margin-top: 4px; color: #b8b8c1; }
.checkpoint-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.checkpoint-heading h2 { margin: 0 0 8px; }
.checkpoint-heading p { margin: 0; font-size: 13px; }
.checkpoint-button { padding: 10px 14px; border: 0; border-radius: 9px; background: #fffc00; color: #0a0a0d; font: inherit; font-weight: 700; cursor: pointer; }
.admin-footnote { margin-top: 14px; color: #b8b8c1; font-size: 12px; }
@media (min-width: 700px) { .admin-stats { grid-template-columns: repeat(4, 1fr); } .rate-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .person-grid { grid-template-columns: repeat(2, 1fr); } }
