* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a0a0a;
  --card: #17171a;
  --text: #f5f5f5;
  --muted: #8a8a92;
  --accent: #A3E635;
  --danger: #ef4444;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 16px;
  padding-bottom: 80px;
  font-size: 16px;
  line-height: 1.5;
}
.container { max-width: 480px; margin: 0 auto; }
.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.logo span { color: var(--accent); }
h1 { font-size: 24px; margin-bottom: 16px; font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: 18px; margin-bottom: 12px; font-weight: 600; }
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #26262b;
}
input, textarea, select {
  width: 100%;
  padding: 14px;
  background: #0f0f11;
  border: 1px solid #2a2a30;
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 12px;
  font-family: inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
button, .btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: block;
  text-align: center;
}
button.ghost, .btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid #2a2a30;
}
button.danger { background: var(--danger); color: white; }
.muted { color: var(--muted); font-size: 14px; }
.item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--card);
  border-radius: 12px;
  margin-bottom: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  border: 1px solid #26262b;
}
.item img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.item-info { flex: 1; min-width: 0; }
.item-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub { font-size: 13px; color: var(--muted); }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.badge.ok { background: rgba(163,230,53,0.15); color: var(--accent); }
.badge.used { background: rgba(239,68,68,0.15); color: var(--danger); }
.center { text-align: center; }
.qr-box { background: white; padding: 16px; border-radius: 16px; display: inline-block; }