:root {
  --bg: #0b0e13;
  --panel: #141922;
  --panel-2: #0f141b;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e9eef4;
  --muted: #9aa7b4;
  --faint: #5e6b78;
  --accent: #6c8cff;
  --accent-2: #9d7bff;
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text); padding: 40px 20px 20px; position: relative;
}
.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38rem 32rem at 8% -8%, rgba(108,140,255,0.16), transparent 60%),
    radial-gradient(34rem 28rem at 100% 6%, rgba(157,123,255,0.13), transparent 60%);
}
.shell { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }

.masthead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font-size: 24px; color: var(--accent); }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.head-right { display: flex; align-items: center; gap: 10px; }
.privacy-pill {
  font-size: 13px; color: #3ddc91; font-weight: 600;
  background: rgba(61,220,145,0.1); border: 1px solid rgba(61,220,145,0.25);
  padding: 6px 12px; border-radius: 999px;
}

.headline { font-size: clamp(28px, 5.5vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; margin-bottom: 12px; }
.sub { color: var(--muted); font-size: 16px; max-width: 58ch; margin-bottom: 26px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: 0 18px 46px rgba(0,0,0,0.38); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
textarea, input[type="number"], select {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: 10px 11px; font-size: 14px; font-family: inherit; resize: vertical;
}
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--accent); }
input[type="color"] { width: 100%; height: 40px; padding: 4px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.inline input { width: 16px; height: 16px; accent-color: var(--accent); }

.batch { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.pro-tag { font-size: 10px; font-weight: 800; color: #ffc850; background: rgba(255,200,80,0.12); padding: 2px 6px; border-radius: 5px; letter-spacing: 0.04em; vertical-align: middle; }

.preview { display: flex; flex-direction: column; align-items: center; }
.qr-stage {
  background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; min-height: 220px; width: 100%;
}
#qr-canvas { max-width: 100%; height: auto; image-rendering: pixelated; }
.dl-row { display: flex; gap: 10px; width: 100%; }
.btn-primary {
  flex: 1; background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff;
  border: none; border-radius: 10px; padding: 12px; font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit;
  transition: filter 0.15s, transform 0.1s;
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 10px;
  padding: 12px 16px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }
.preview-note { font-size: 12px; color: var(--faint); margin-top: 12px; text-align: center; min-height: 16px; }
