* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #eee;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.container {
  width: 100%;
  max-width: 480px;
  padding: 24px;
}
h1 { text-align: center; font-size: 28px; margin-bottom: 8px; }
.subtitle { text-align: center; color: #aaa; margin-bottom: 24px; font-size: 14px; }
.card {
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
}
label { display: block; margin-bottom: 8px; font-size: 14px; color: #ccc; }
input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}
input:focus { outline: none; border-color: #25d366; }
button {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: #25d366;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover { background: #1ebe57; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.hidden { display: none !important; }
#qrWrap { text-align: center; }
#qrImage { max-width: 280px; border-radius: 12px; margin: 16px 0; }
.hint { font-size: 13px; color: #aaa; }
.timer { font-size: 13px; color: #888; margin-top: 8px; }
.status { text-align: center; color: #ccc; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #25d366; color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 16px;
}
#successWrap { text-align: center; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.08); }
th { color: #aaa; font-weight: 500; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; }
.badge-open { background: #f59e0b; color: #000; }
.badge-close { background: #ef4444; color: #fff; }
.badge-connecting { background: #3b82f6; color: #fff; }
.badge-connected { background: #25d366; color: #000; }
