* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  margin: 0;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.subtitle {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.card {
  background: #1e293b;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

button {
  background: #38bdf8;
  color: #0f172a;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

button:disabled {
  background: #475569;
  color: #94a3b8;
  cursor: not-allowed;
}

.status {
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  background: #0f172a;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2em;
}

.status.ok { color: #4ade80; }
.status.wait { color: #facc15; }
.status.error { color: #f87171; }

.qr-wrap {
  text-align: center;
  margin: 16px 0;
}

.qr-wrap img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.url-box {
  background: #0f172a;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.8rem;
  word-break: break-all;
  margin-top: 12px;
  color: #94a3b8;
}

.sms-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sms-form input {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px;
  color: #e2e8f0;
  font-size: 1rem;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

video {
  width: 100%;
  border-radius: 12px;
  background: #000;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.end-call-btn {
  margin-top: 16px;
  background: #ef4444;
  color: #fff;
}

.end-call-btn:hover {
  background: #dc2626;
}

.video-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 4px;
}
