:root {
  --bg: #0f0f13;
  --card: #1a1a1f;
  --border: #2a2a33;
  --text: #e8e8ec;
  --text-muted: #9a9aa5;
  --primary: #6c5ce7;
  --accent: #6c5ce7;
  --input-bg: #141419;
  --success: #28a745;
  --danger: #e74c3c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  padding: 32px 16px;
  line-height: 1.5;
}
.container { max-width: 680px; margin: 0 auto; }
.header { text-align: center; margin-bottom: 24px; }
.header h1 { font-size: 26px; font-weight: 700; }
.header p { color: var(--text-muted); margin-top: 6px; font-size: 15px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}
.card h2 { font-size: 20px; margin-bottom: 16px; }
.card h3 { font-size: 16px; margin: 20px 0 12px; }
.form-group { margin-bottom: 18px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: none; }
.hint { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }
.btn {
  display: inline-block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-secondary { background: var(--input-bg); color: var(--text); border: 1px solid var(--border); }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; line-height: 1.5; }
.alert-error { background: rgba(231,76,60,.12); color: #ff8a80; border: 1px solid rgba(231,76,60,.3); }
.alert-success { background: rgba(40,167,69,.12); color: #6fdc8c; border: 1px solid rgba(40,167,69,.3); }
.alert-info { background: rgba(108,92,231,.12); color: #b3a7ff; border: 1px solid rgba(108,92,231,.3); }
.steps { display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.step {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--input-bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; color: var(--text-muted);
}
.step.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.step.done { background: rgba(40,167,69,.2); color: var(--success); border-color: var(--success); }
.step-line { width: 40px; height: 2px; background: var(--border); }
.section-intro { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.mc-question { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.mc-question:last-child { border-bottom: none; }
.mc-q-text { font-weight: 600; margin-bottom: 10px; font-size: 15px; line-height: 1.5; }
.mc-option {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 8px;
  cursor: pointer; font-size: 14.5px; line-height: 1.5; font-weight: normal;
}
.mc-option:hover { border-color: var(--primary); }
.mc-option input { width: auto; margin-top: 3px; }
.timer-bar { height: 8px; background: var(--primary); border-radius: 4px; transition: width .3s; width: 0%; }
.speed-results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.speed-box { background: var(--input-bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.speed-box .value { font-size: 32px; font-weight: 700; color: var(--primary); }
.speed-box .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.result-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.result-item:last-child { border-bottom: none; }
.result-item .pass { color: var(--success); font-weight: 600; }
.result-item .fail { color: var(--danger); font-weight: 600; }
.video-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 20px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.endpage { text-align: center; padding: 40px 20px; }
.endpage .icon { font-size: 64px; margin-bottom: 20px; }
.endpage h2 { font-size: 24px; margin-bottom: 12px; }
.endpage p { color: var(--text-muted); font-size: 15px; line-height: 1.7; max-width: 440px; margin: 0 auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th, .admin-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.admin-table th { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.admin-table tr:hover td { background: rgba(108,92,231,.05); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.registered { background: rgba(108,92,231,.15); color: #b3a7ff; }
.badge.test1_passed, .badge.video_passed, .badge.sop_passed { background: rgba(40,167,69,.15); color: #6fdc8c; }
.badge.hired { background: rgba(40,167,69,.3); color: #6fdc8c; }
.badge.failed { background: rgba(231,76,60,.15); color: #ff8a80; }
.admin-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-toolbar select, .admin-toolbar input { width: auto; flex: 1; min-width: 140px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; }
.stat-card .n { font-size: 24px; font-weight: 700; color: var(--primary); }
.stat-card .l { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.detail-row .k { color: var(--text-muted); flex-shrink: 0; }
.detail-row .v { text-align: right; word-break: break-word; }
.container-wide { max-width: 1080px; margin: 0 auto; }
@media (max-width: 640px) {
  .card { padding: 20px; }
  body { padding: 20px 12px; }
}
