* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f6f9;
  color: #17212b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card {
  width: 100%;
  max-width: 620px;
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 18px 55px rgba(0,0,0,.10);
  text-align: center;
}

.brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #1677d2;
  margin-bottom: 8px;
}

h1 {
  margin: 0 0 22px;
  font-size: 26px;
}

.applicant {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.applicant div {
  background: #f5f8fb;
  border: 1px solid #e4ebf2;
  border-radius: 10px;
  padding: 12px;
}

.applicant span {
  display: block;
  color: #6f7f8d;
  font-size: 11px;
  margin-bottom: 5px;
}

.applicant strong {
  font-size: 14px;
}

.instruction {
  color: #607080;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.camera-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #101820;
  border-radius: 16px;
  overflow: hidden;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: none;
}

.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #aab7c3;
  gap: 8px;
}

.camera-icon {
  font-size: 46px;
}

.guide {
  display: none;
  position: absolute;
  width: 46%;
  height: 72%;
  left: 27%;
  top: 14%;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  pointer-events: none;
}

.camera-active .guide {
  display: block;
}

.status {
  min-height: 20px;
  margin: 15px 0;
  color: #637485;
  font-size: 13px;
}

button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

.primary {
  background: #1677d2;
  color: #fff;
}

.primary:hover { background: #0f62b1; }

.secondary {
  background: #eaf0f5;
  color: #23313d;
  margin-top: 10px;
}

.success {
  margin-top: 18px;
  padding: 22px;
  background: #edf9f2;
  border: 1px solid #a9dfbf;
  border-radius: 12px;
}

.check {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #19a463;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.success h2 {
  margin: 0;
  font-size: 19px;
  color: #167548;
}

.success p {
  margin: 7px 0 0;
  color: #537160;
  font-size: 13px;
}

.privacy {
  margin: 20px 0 0;
  color: #8a98a5;
  font-size: 11px;
}

.hidden { display: none !important; }

@media (max-width: 520px) {
  .card { padding: 20px; }
  .applicant { grid-template-columns: 1fr; }
}