:root {
  --ink: #160b2e;
  --muted: #6b5b83;
  --line: #eadff5;
  --paper: #fbf7ff;
  --card: #ffffff;
  --brand: #7c3aed;
  --brand-2: #db2777;
  --orange: #f97316;
  --warn: #b45309;
  --bad: #b91c1c;
  --ok: #15803d;
  --shadow: 0 22px 50px rgba(88, 28, 135, .12);
}
* { box-sizing: border-box; }
html {
  margin: 0;
  min-height: 100%;
  background-color: #1a1028;
  background-image: url("bg-qr2print.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background: rgba(255,255,255,.14);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
a { color: var(--brand); text-decoration: none; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.promo {
  display: block;
  text-align: center;
  padding: 9px 16px;
  background: linear-gradient(90deg, #f472b6, #fb7185, #fb923c);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}
.topbar {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 19px; }
.logo {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #db2777, #f97316);
  color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 900;
  box-shadow: 0 8px 18px rgba(219, 39, 119, .35);
}
.nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nav a { color: #4c3a63; font-weight: 700; font-size: 14px; }
.btn-login {
  background: #fff !important;
  border: 1px solid #ead7f5 !important;
  color: var(--ink) !important;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(88,28,135,.08);
}
.btn, button.btn, input[type=submit].btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, #f97316, #ec4899);
  color: #fff; border: 0; border-radius: 999px; padding: 13px 22px;
  font-weight: 800; cursor: pointer; font-size: 15px;
  box-shadow: 0 12px 24px rgba(236, 72, 153, .35);
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-google {
  width: 100%;
  background: #fff;
  color: #1f2937;
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-google:hover { background: #f8fafc; }
.btn-warn { background: #b45309; box-shadow: none; }
.btn-bad { background: #b91c1c; box-shadow: none; }
.landing {
  background: rgba(255,255,255,.05);
}
.section h2, .landing h1 {
  text-shadow: 0 2px 16px rgba(255,255,255,.75);
}
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px;
  padding: 42px 0 18px; align-items: center;
}
.hero-copy {
  background: rgba(255,255,255,.68);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 28px;
  padding: 22px 24px;
  box-shadow: 0 18px 40px rgba(88, 28, 135, .08);
}
.kicker { color: #db2777; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; margin: 8px 0 14px; letter-spacing: -.03em; }
.lead { color: var(--muted); font-size: 18px; max-width: 540px; }
.steps { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 14px; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.step i {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #f97316);
  color: #fff; font-style: normal; font-size: 11px;
  display: grid; place-items: center;
}
.hero-visual {
  position: relative;
  min-height: 380px;
}
.phone {
  width: min(260px, 70%);
  margin: 0 auto;
  background: #1e1238;
  border-radius: 32px;
  padding: 18px 14px 28px;
  color: #fff;
  box-shadow: 0 30px 60px rgba(88, 28, 135, .35);
  position: relative; z-index: 2;
}
.phone .notch { width: 86px; height: 10px; background: #0b0716; border-radius: 999px; margin: 0 auto 16px; }
.phone .screen {
  background: linear-gradient(180deg, #4c1d95, #9d174d);
  border-radius: 18px; min-height: 220px; padding: 18px;
}
.qr-box {
  width: 120px; height: 120px; margin: 12px auto; background:
    repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 16px 16px;
  border-radius: 10px; border: 8px solid #fff;
}
.float-tag {
  position: absolute; background: #fff; color: var(--ink);
  padding: 8px 12px; border-radius: 999px; font-weight: 800; font-size: 12px;
  box-shadow: var(--shadow);
}
.float-tag.a { top: 24px; right: 8px; }
.float-tag.b { bottom: 70px; left: 0; }
.printer {
  width: 210px; height: 86px; margin: 18px auto 0;
  background: #111827; border-radius: 16px; position: relative;
  box-shadow: 0 16px 30px rgba(0,0,0,.25);
}
.printer:before {
  content: "PRINTING";
  position: absolute; left: 16px; top: 14px; color: #f43f5e; font-size: 11px; font-weight: 800;
}
.printer:after {
  content: "";
  position: absolute; right: 18px; top: 18px; width: 10px; height: 10px;
  background: #22c55e; border-radius: 50%; box-shadow: 18px 0 #facc15, 36px 0 #f97316;
}
.strip {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr);
  background: #fff; border-radius: 22px; padding: 18px;
  box-shadow: var(--shadow); gap: 12px; margin: 10px 0 28px;
}
.strip div { font-weight: 800; font-size: 13px; color: #3f2a5a; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(90deg, #2e1065, #831843);
  color: #fff; border-radius: 24px; padding: 28px; gap: 12px; margin-bottom: 48px;
}
.stats b { display: block; font-size: 28px; }
.stats span { opacity: .8; font-size: 13px; }
.section { padding: 18px 0 8px; }
.section h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; }
.grid-4, .grid-3, .grid-2 { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow);
}
.card.popular { border: 2px solid #f97316; transform: translateY(-6px); }
.price { font-size: 40px; font-weight: 900; letter-spacing: -.03em; }
.muted { color: var(--muted); }
.ok { color: var(--ok); font-weight: 700; }
.bad { color: var(--bad); font-weight: 700; }
.check { margin: 0; padding-left: 18px; color: #3f2a5a; }
.check li { margin: 8px 0; }
.review {
  min-height: 140px;
}
.banner {
  background: #fdf2f8; border: 1px solid #fbcfe8; color: #9d174d;
  padding: 12px 14px; border-radius: 12px; margin: 16px 0;
}
.banner.warn { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
.banner.bad { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
label { display: block; font-weight: 700; margin: 12px 0 6px; font-size: 14px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 12px; font: inherit; background: #fff;
}
.auth-box { width: min(460px, calc(100% - 32px)); margin: 40px auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.badge {
  display: inline-block; border-radius: 999px; padding: 3px 10px;
  font-size: 12px; font-weight: 800; background: #f3e8ff;
  color: #6b21a8;
}
.badge.active, .badge.paid, .badge.printed { background: #dcfce7; color: #166534; }
.badge.demo, .badge.printing { background: #dbeafe; color: #1e40af; }
.badge.pending, .badge.awaiting_payment { background: #ffedd5; color: #9a3412; }
.badge.banned, .badge.failed, .badge.expired { background: #fee2e2; color: #991b1b; }
.site-foot { margin-top: 64px; padding: 36px 0 20px; background: #160b2e; color: #e9d5ff; }
.site-foot a { color: #f5d0fe; display: block; margin: 6px 0; font-weight: 600; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-foot h4 { margin: 0 0 10px; color: #fff; }
.site-foot .brand { color: #fff; }
.copy { text-align: center; opacity: .7; font-size: 13px; margin: 28px 0 0; }
.phone-app { max-width: 520px; margin: 0 auto; padding: 16px; }
.pipe { list-style: none; padding: 0; margin: 12px 0 16px; }
.pipe li { padding: 6px 0 6px 28px; position: relative; color: var(--muted); font-weight: 700; font-size: 13px; }
.pipe li:before { content: ""; position: absolute; left: 4px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: #e5d4f5; }
.pipe li.on { color: var(--ink); }
.pipe li.on:before { background: #16a34a; }
.pay-qr {
  display: block;
  width: min(240px, 70%);
  margin: 12px auto;
  background: #fff;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.drop {
  border: 2px dashed var(--line); border-radius: 16px; padding: 28px;
  text-align: center; background: #fff;
}
.stat { font-size: 28px; font-weight: 900; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; display: inline-block; }
.live-dot.on { background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.18); }
.live-dot.wait { background: #d97706; box-shadow: 0 0 0 4px rgba(217,119,6,.18); }
.card.link-ok { border: 2px solid #16a34a; background: #f0fdf4; }
.card.link-off { border: 2px solid #dc2626; background: #fef2f2; }
.card.link-wait { border: 2px solid #d97706; background: #fffbeb; }
.badge.approved { background: #dcfce7; color: #166534; }
.badge.rejected { background: #fee2e2; color: #991b1b; }
.btn-wa, a.btn-wa, button.btn-wa {
  background: #16a34a;
  box-shadow: 0 12px 24px rgba(22, 163, 74, .35);
  color: #fff;
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 18px;
}
.choice {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 12px;
  background: #fff;
  color: var(--ink);
}
.choice strong { display: block; font-size: 14px; }
.choice span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.choice.wa {
  background: #ecfdf5;
  border-color: #86efac;
}
.wa-steps { margin: 8px 0 16px 18px; font-weight: 700; color: #3f2a5a; }
.chat-log {
  height: 420px; overflow-y: auto; background: #faf7ff;
  border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 12px 0;
}
.chat-bubble {
  max-width: 80%; padding: 10px 12px; border-radius: 14px; margin: 8px 0;
  background: #fff; border: 1px solid var(--line);
}
.chat-bubble.mine { background: #ede9fe; margin-left: auto; border-color: #ddd6fe; }
.chat-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.chat-form textarea { margin-top: 8px; }
.chat-thread {
  display: block; padding: 10px 8px; border-bottom: 1px solid var(--line);
  color: inherit;
}
.chat-thread.on { background: #f5f3ff; }
.chat-thread strong { margin-right: 8px; }
.float-setup {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
}
@media (max-width: 900px) {
  .hero, .grid-4, .grid-3, .grid-2, .strip, .stats, .foot-grid, .choice-grid { grid-template-columns: 1fr; }
  .nav { gap: 8px; }
  .nav a { display: inline-flex !important; font-size: 12px; padding: 6px 8px; }
  .card.popular { transform: none; }
  .float-setup { left: 16px; right: 16px; text-align: center; }
  html { background-attachment: scroll; }
}
