* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #0b3d5c 0%, #1e6f9f 100%);
  color: #1b2a35;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  text-align: center;
}

h1 { margin: 0 0 6px; font-size: 1.5rem; }
.muted { color: #5c6b78; margin: 0 0 20px; }
.small { color: #5c6b78; font-size: .8rem; margin: 14px 0 4px; }

label { display: block; text-align: left; font-weight: 600; margin-bottom: 6px; }

select, button, .btn-secondary {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #cfd8e0;
  margin-bottom: 12px;
}

button, .btn-secondary {
  cursor: pointer;
  background: #1e6f9f;
  color: #fff;
  border: none;
  font-weight: 600;
  transition: background .15s;
  text-decoration: none;
  display: inline-block;
}
button:hover, .btn-secondary:hover { background: #0b3d5c; }
button:disabled { opacity: .6; cursor: wait; }

.btn-secondary { background: #e9eff4; color: #1b2a35; }
.btn-secondary:hover { background: #d6e0e8; }

.actions { display: flex; gap: 10px; margin-top: 16px; }
.actions > * { flex: 1; margin-bottom: 0; }

.status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  margin: 0;
}
.status.active { background: #e3f6e8; color: #1d7a3a; }
.status.used   { background: #fff1dc; color: #9a5a00; }

.error {
  background: #ffe8e8;
  color: #a12a2a;
  padding: 10px;
  border-radius: 8px;
}

#qrcode {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border: 1px solid #e1e8ee;
  border-radius: 12px;
  margin-top: 16px;
}
#qrcode img, #qrcode canvas { display: block; width: 256px; height: 256px; }

code {
  display: block;
  background: #f3f6f9;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .78rem;
  word-break: break-all;
}

/* ---------- Store landing page ---------- */
.store-body {
  background: linear-gradient(160deg, #f7eef4 0%, #e9d6e3 50%, #5b2c4e 100%);
}
.store {
  max-width: 420px;
  padding: 36px 28px;
}
.store .logo {
  width: 220px;
  margin: 0 auto 10px;
}
.store .logo img { width: 100%; height: auto; display: block; }
.store .tagline { color: #5b2c4e; font-weight: 600; margin: 0 0 14px; }
.store .desc { color: #425563; line-height: 1.5; }
.store .info { list-style: none; padding: 0; margin: 14px 0; color: #425563; font-size: .92rem; }
.store .info li { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0; }
.store .info svg { width: 18px; height: 18px; color: #5b2c4e; }

.store .links { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 12px;
  background: #5b2c4e;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .12s, filter .12s;
}
.link-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.link-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .18);
  flex-shrink: 0;
}
.link-icon svg { width: 22px; height: 22px; }
.link-btn.whatsapp  { background: #25d366; }
.link-btn.instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.link-btn.facebook  { background: #1877f2; }
.link-btn.website   { background: #5b2c4e; }
.link-btn.tiktok    { background: #010101; }

/* ---------- Expired / invalid page ---------- */
.expired .icon { font-size: 3rem; margin-bottom: 8px; }
