:root {
  --bg: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --error: #ef4444;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.loading-screen,
.error-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.loading-screen .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #22c55e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-screen p,
.error-screen p {
  color: var(--text-muted);
}

.error-screen h1 {
  font-size: 1.5rem;
  color: var(--error);
  margin-bottom: 8px;
}

.qr-content-frame {
  width: 100%;
  min-height: 100vh;
  border: none;
  display: block;
}

.hidden {
  display: none !important;
}
