:root {
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --bg-input: #1a1a1a;
  --border: #262626;
  --orange: #ff6b1a;
  --orange-bright: #ff8534;
  --white: #ffffff;
  --muted: #8a8a8a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 107, 26, 0.08), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(255, 107, 26, 0.05), transparent 40%),
    var(--bg);
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.container--wide {
  max-width: 960px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.brand__logo {
  width: 140px;
  height: auto;
  margin-bottom: 18px;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(255, 107, 26, 0.18));
}

@media (max-width: 480px) {
  .brand__logo { width: 110px; margin-bottom: 14px; }
}

.brand__mark {
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.brand__title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: uppercase;
}

.brand__title em {
  color: var(--orange);
  font-style: normal;
}

.brand__tag {
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--muted);
  margin-top: 12px;
  text-transform: uppercase;
}

.hero {
  margin: 24px 0 28px;
}

.hero__kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid var(--orange);
  padding: 6px 10px;
  margin-bottom: 16px;
}

.hero__title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero__title span { color: var(--orange); }

.hero__copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.form { display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.field input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-size: 16px;
  padding: 14px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.field input::placeholder { color: #555; }

.field input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.15);
}

.field select {
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-size: 16px;
  padding: 14px 40px 14px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23ff6b1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.15);
}

.field select option {
  background: var(--bg-input);
  color: var(--white);
}

.field select option[disabled] { color: #555; }

.field textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  resize: vertical;
  min-height: 110px;
}

.field textarea::placeholder { color: #555; }

.field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.15);
}

.field--question label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--white);
  font-weight: 700;
  line-height: 1.4;
}

.questions { margin-top: 18px; }
.questions .field--question + .field--question { margin-top: 14px; }

.field__optional {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  vertical-align: middle;
}

.btn {
  background: var(--orange);
  color: #1a0a00;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  margin-top: 6px;
  font-family: inherit;
}

.btn:hover { background: var(--orange-bright); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; background: #555; color: #1a1a1a; }

/* Requirements section */
.reqs { margin-top: 16px; }

.reqs__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.reqs__counter {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: #1a1a1a;
}
.reqs__counter.is-complete {
  color: #1a0a00;
  background: var(--orange);
  border-color: var(--orange);
}

.reqs__intro {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px;
  line-height: 1.5;
}

.reqs__group { margin-top: 14px; }
.reqs__group:first-of-type { margin-top: 6px; }

.reqs__group-title {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.req {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 8px;
  transition: background 0.1s ease;
  user-select: none;
}
.req:hover { background: rgba(255, 255, 255, 0.02); }
.req:active { background: rgba(255, 107, 26, 0.05); }

.req input[type="checkbox"] {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  margin-top: 1px;
  accent-color: var(--orange);
  cursor: pointer;
}

.req span { color: var(--white); }
.req span strong { color: var(--orange); }

.reqs .btn { width: 100%; margin-top: 18px; }

.error {
  background: rgba(255, 60, 60, 0.1);
  border: 1px solid rgba(255, 60, 60, 0.4);
  color: #ff8a8a;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}

.error.show { display: block; }

.foot {
  text-align: center;
  margin-top: 28px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* Welcome page */
.welcome { text-align: center; }

.welcome__badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid var(--orange);
  padding: 6px 14px;
  margin-bottom: 24px;
}

.welcome__title {
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 900;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.welcome__title span { color: var(--orange); }

.welcome__sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 32px;
}

.steps {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 24px;
}

.step {
  display: flex;
  gap: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  align-items: center;
}

.step__num {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: #1a0a00;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.step__text {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.step__text a { color: var(--orange); text-decoration: none; font-weight: 800; }

.section-title {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  margin: 32px 0 14px;
  text-align: left;
}

/* Admin */
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-count {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.admin-count strong { color: var(--orange); font-size: 18px; margin-right: 6px; }

.table-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

th {
  background: #1a1a1a;
  color: var(--orange);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
}

tr:last-child td { border-bottom: none; }

td a { color: var(--orange); text-decoration: none; }
td a:hover { text-decoration: underline; }

.badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid;
}
.badge--pending { color: var(--orange); border-color: var(--orange); background: rgba(255, 107, 26, 0.08); }
.badge--approved { color: #48d597; border-color: #2c7d59; background: rgba(72, 213, 151, 0.08); }

.btn-mini {
  background: var(--orange);
  color: #1a0a00;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  font-family: inherit;
}
.btn-mini:hover { background: var(--orange-bright); }
.btn-mini:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-mini--danger {
  background: transparent;
  color: #ff6b6b;
  border: 1px solid #7a2a2a;
}
.btn-mini--danger:hover {
  background: rgba(255, 107, 107, 0.12);
  border-color: #ff6b6b;
}

.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.muted { color: var(--muted); font-size: 12px; }

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
.chip:hover { color: var(--white); border-color: #444; }
.chip.is-active {
  color: #1a0a00;
  background: var(--orange);
  border-color: var(--orange);
}

.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 480px) {
  .brand__title { font-size: 32px; }
  .hero__title { font-size: 26px; }
  .welcome__title { font-size: 28px; }
}
