:root {
  --bg: #0b1020;
  --bg-soft: rgba(255, 255, 255, 0.06);
  --card: rgba(15, 23, 42, 0.82);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --muted: #b6c0dd;
  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --success: #16a34a;
  --danger: #ef4444;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.28), transparent 30%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.20), transparent 25%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }

.page-shell,
.single-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.single-shell {
  max-width: 560px;
  display: flex;
  min-height: 100vh;
  align-items: center;
}

.hero {
  padding: 18px 0 30px;
}

.hero-badge,
.step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  color: #dbeafe;
  font-weight: 700;
  font-size: 0.85rem;
}

.hero h1,
.card h1,
.card h2 {
  margin: 14px 0 10px;
  line-height: 1.1;
}

.hero h1 { font-size: clamp(2rem, 5vw, 4rem); max-width: 720px; }
.hero p,
.card p,
.url-box,
.empty-state { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.card-accent {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.16), rgba(15, 23, 42, 0.9));
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.qr-box {
  margin: 20px 0 14px;
  background: white;
  border-radius: 24px;
  padding: 18px;
  display: inline-flex;
}

.url-box,
.status-box,
.ready-box,
.file-info,
.empty-state,
.alert {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 14px 16px;
}

.url-box {
  word-break: break-all;
  font-size: 0.92rem;
}

.status-box,
.ready-box,
.file-info,
.alert,
.empty-state {
  margin-top: 16px;
}

.upload-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.upload-form.stack {
  flex-direction: column;
  align-items: stretch;
}

.file-input {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.16);
  cursor: pointer;
  font-weight: 600;
}

.file-input input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
  transition: transform .18s ease, opacity .18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn.secondary { background: rgba(255,255,255,0.08); border: 1px solid var(--card-border); }

.alert.success { border-color: rgba(22, 163, 74, 0.45); }
.alert.error { border-color: rgba(239, 68, 68, 0.45); }
.divider { height: 1px; background: var(--card-border); margin: 22px 0; }
.mobile-card { width: 100%; }

@media (max-width: 720px) {
  .page-shell, .single-shell { width: min(100% - 20px, 1120px); }
  .card { padding: 20px; border-radius: 24px; }
  .qr-box canvas { width: 100%; height: auto; }
}


.hint {
  margin-top: .4rem;
  color: #94a3b8;
  font-size: .95rem;
}
