/* DA Loyalty – loyalty.datpl.com */
:root {
  --ink: #1b1530; --muted: #625d75; --line: #e6e2f0; --bg: #f7f5fb; --card: #fff;
  --brand: #6d28d9; --brand2: #5b21b6; --brand3: #ede7fb; --gold: #f59e0b; --bad: #b42318; --ok: #067647;
  --radius: 14px; --shadow: 0 1px 2px rgba(27,21,48,.06), 0 8px 24px rgba(27,21,48,.07);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
h1, h2, h3 { font-family: "Space Grotesk", Inter, system-ui, sans-serif; line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: clamp(30px, 5vw, 52px); letter-spacing: -.02em; }
h2 { font-size: clamp(22px, 3vw, 32px); letter-spacing: -.01em; }
h3 { font-size: 17px; }
a { color: var(--brand); }
img { max-width: 100%; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.hide { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.empty { text-align: center; color: var(--muted); padding: 36px 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; font: 600 14px/1.2 Inter, system-ui, sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--brand2); }
.btn.ghost { background: #fff; color: var(--brand); } .btn.ghost:hover { background: var(--brand3); }
.btn.plain { background: transparent; border-color: var(--line); color: var(--ink); } .btn.plain:hover { background: #f1eef8; }
.btn.danger { background: #fff; color: var(--bad); border-color: #f3c6c1; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1b1530; } .btn.gold:hover { background: #e48c06; }
.btn.wa { background: #16a34a; border-color: #16a34a; } .btn.wa:hover { background: #15803d; }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 14px 22px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label.f { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 5px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d6d0e4; border-radius: 10px; font: inherit; background: #fff; color: inherit; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #c4b5fd; border-color: var(--brand); }
input[type=color] { width: 48px; height: 40px; border: 1px solid #d6d0e4; border-radius: 10px; padding: 2px; background: #fff; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.pfx { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid #d6d0e4; border-radius: 10px; background: #f3f0fa; font-weight: 600; height: 42px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--brand3); color: var(--brand2); }
.pill.warn { background: #fef3c7; color: #92400e; } .pill.bad { background: #fee4e2; color: var(--bad); } .pill.grey { background: #efedf4; color: var(--muted); }
.pill.ok { background: #dcfae6; color: var(--ok); }
.note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.note.info { background: #f3efff; border-color: #d9ccfb; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1b1530; color: #fff; padding: 11px 18px; border-radius: 10px;
  font-size: 14px; z-index: 300; max-width: 90vw; box-shadow: var(--shadow); text-align: center; }
.toast.bad { background: var(--bad); }

header.top { background: #1e1046; color: #fff; position: sticky; top: 0; z-index: 20; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 19px "Space Grotesk", sans-serif; }
.brand img { width: 30px; height: 30px; }
header.top nav { display: flex; gap: 16px; align-items: center; }
header.top nav a { color: #e4dcff; text-decoration: none; font-weight: 500; font-size: 14px; }
header.top nav a.btn { color: #fff; }

/* tables */
.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr.click { cursor: pointer; } .t tr.click:hover td { background: #faf8fe; }
.tscroll { overflow-x: auto; }

/* dashboard */
.auth { max-width: 420px; margin: 48px auto; }
.dash { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 24px 0 60px; }
.side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 80px; align-self: start; }
.side a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; cursor: pointer; }
.side a:hover { background: #efeaf9; } .side a.on { background: var(--brand); color: #fff; }
@media (max-width: 820px) {
  .dash { grid-template-columns: 1fr; padding-top: 12px; }
  .side { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .side a { white-space: nowrap; padding: 8px 12px; background: #fff; border: 1px solid var(--line); }
}
.panel { display: none; } .panel.on { display: block; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.editor .preview { position: sticky; top: 80px; }
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } .editor .preview { position: static; } }
.rw-row { display: grid; grid-template-columns: 124px 1fr 36px; gap: 8px; margin-bottom: 8px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat b { display: block; font: 700 26px "Space Grotesk", sans-serif; } .stat span { font-size: 12px; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font: 500 13px Inter, sans-serif; cursor: pointer; color: var(--ink); }
.chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.plan.pop { border: 2px solid var(--brand); box-shadow: 0 10px 30px rgba(109,40,217,.15); }
.plan .price { font: 700 32px "Space Grotesk", sans-serif; } .plan .per { font-size: 12px; color: var(--muted); }
.plan ul { padding-left: 18px; margin: 8px 0 14px; flex: 1; } .plan li { margin: 4px 0; font-size: 14px; }
.modal-ov { position: fixed; inset: 0; background: rgba(20,12,40,.55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: #fff; border-radius: 18px; max-width: 520px; width: 100%; max-height: 92vh; overflow: auto; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.bars div { flex: 1; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars div:hover { background: var(--brand2); }
.bars-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ───────── stamp card ───────── */
.sc { max-width: 470px; margin: 0 auto; background: linear-gradient(150deg, var(--c), var(--c2)); color: var(--fg); border-radius: 22px; padding: 18px; box-shadow: 0 14px 40px rgba(27,21,48,.22); position: relative; overflow: hidden; }
.sc::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.09); pointer-events: none; }
.sc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sc-logo { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: #fff; flex: none; }
.sc-ini { display: grid; place-items: center; font: 700 24px "Space Grotesk", sans-serif; color: var(--c); }
.sc-t { flex: 1; min-width: 0; } .sc-name { font: 700 19px/1.2 "Space Grotesk", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-title { font-size: 12px; opacity: .85; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.sc-done { background: rgba(255,255,255,.2); border-radius: 99px; padding: 4px 10px; font-weight: 700; font-size: 13px; }
.sc-grid { display: grid; gap: 10px; }
.sc-box { aspect-ratio: 1; border-radius: 50%; background: var(--c3); color: var(--c2); display: grid; place-items: center; text-align: center; position: relative;
  border: 2px dashed rgba(0,0,0,.12); font-weight: 700; overflow: hidden; }
.sc-box .sc-num { font: 700 20px "Space Grotesk", sans-serif; opacity: .7; }
.sc-box.gift { background: #fff7df; color: #7a4b00; border: 2px dashed #f5b83d; display: flex; flex-direction: column; justify-content: center; padding: 4px; }
.sc-gift { font-size: 18px; line-height: 1; } .sc-gt { font-size: 9px; line-height: 1.1; font-weight: 700; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.sc-box.on { background: #fff; border: 2px solid #fff; color: var(--c); }
.sc-mark { width: 78%; height: 78%; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--c3); transform: rotate(-12deg); }
.sc-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sc-box.pop .sc-mark { animation: stamp .55s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stamp { 0% { transform: scale(2.2) rotate(-30deg); opacity: 0; } 100% { transform: scale(1) rotate(-12deg); opacity: 1; } }
.sc-foot { margin-top: 14px; font-size: 14px; text-align: center; min-height: 20px; }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 400; }

/* PIN pad */
.pin-ov { position: fixed; inset: 0; background: rgba(20,12,40,.7); display: grid; place-items: center; z-index: 200; padding: 14px; }
.pin-box { background: #fff; border-radius: 22px; padding: 20px; width: 100%; max-width: 340px; text-align: center; }
.pin-box h3 { margin: 4px 0; } .pin-staff { display: inline-block; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.pin-n { display: flex; gap: 6px; justify-content: center; align-items: center; margin: 10px 0 4px; flex-wrap: wrap; }
.pin-n button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: 700 15px Inter, sans-serif; cursor: pointer; }
.pin-n button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pin-dots { display: flex; gap: 12px; justify-content: center; margin: 14px 0 4px; }
.pin-dots span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--brand); } .pin-dots span.on { background: var(--brand); }
.pin-err { color: var(--bad); min-height: 18px; }
.pin-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.pin-keys button { height: 56px; border-radius: 14px; border: 0; background: #f1eef8; font: 600 22px Inter, sans-serif; cursor: pointer; color: var(--ink); }
.pin-keys button:active { background: #ddd4f3; } .pin-keys button.ok { background: var(--brand); color: #fff; font-size: 17px; }
.pin-cancel { margin-top: 10px; background: none; border: 0; color: var(--muted); font: 600 14px Inter, sans-serif; cursor: pointer; padding: 8px; }

/* customer page */
.cp { max-width: 460px; margin: 0 auto; padding: 18px 16px 40px; }
.cp-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cp-act { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 16px 0; }
.rw-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid #f5b83d; border-radius: 16px; padding: 12px 14px; margin-top: 10px; }
.rw-card .ic { font-size: 28px; } .rw-card b { display: block; font-size: 16px; }
.done-ov { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; text-align: center; color: #fff; }
.done-ov .big { font-size: 72px; line-height: 1; } .done-ov h2 { color: #fff; margin: 12px 0 4px; } .done-ov .clock { font: 700 26px "Space Grotesk", sans-serif; margin: 10px 0; }
.hist { list-style: none; padding: 0; margin: 0; font-size: 14px; } .hist li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.made { text-align: center; font-size: 12px; color: var(--muted); margin-top: 26px; } .made a { color: var(--muted); }

/* landing */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #7c3aed 0%, transparent 60%), #1e1046; color: #fff; padding: 64px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 18px; color: #ddd3ff; max-width: 560px; }
.hero .phone { background: #0e0726; border-radius: 34px; padding: 14px; max-width: 340px; margin-left: auto; box-shadow: 0 40px 80px rgba(0,0,0,.4); border: 1px solid #3b2a73; transform: rotate(2deg); }
.hero .phone .inner { background: var(--bg); border-radius: 24px; padding: 14px; color: var(--ink); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero .phone { margin: 0 auto; } }
section.s { padding: 64px 0; } section.s.alt { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; } .step .n { font: 700 30px "Space Grotesk", sans-serif; color: var(--brand); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; } @media (max-width: 700px) { .vs { grid-template-columns: 1fr; } }
.vs ul { padding-left: 18px; } .vs li { margin: 6px 0; }
footer.f { background: #1e1046; color: #cfc4f5; padding: 30px 0; font-size: 13px; } footer.f a { color: #fff; }

/* points / cashback cards */
.sc-big { text-align: center; padding: 8px 0 4px; } .sc-big b { display: block; font: 700 54px/1 "Space Grotesk", sans-serif; letter-spacing: -.02em; }
.sc-big span { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; font-weight: 600; }
.sc-big.pop b { animation: stamp .6s cubic-bezier(.2,1.6,.4,1) both; }
.sc-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.25); margin: 12px 4px 10px; overflow: hidden; }
.sc-bar i { display: block; height: 100%; background: #fbbf24; border-radius: 99px; transition: width .6s; }
.sc-cat { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.sc-cat span { background: rgba(255,255,255,.16); border-radius: 99px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.sc-cat span.ok { background: #fff7df; color: #7a4b00; }
.sc-cb { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sc-cb span { background: rgba(255,255,255,.16); border-radius: 99px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.sc-tier { margin-top: 12px; background: rgba(0,0,0,.18); border-radius: 14px; padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13px; }
.sc-tb { font-weight: 700; } .sc-tp { opacity: .9; } .sc-tn { flex-basis: 100%; font-size: 12px; opacity: .8; }

/* PIN pad amount step */
.pin-amt { background: #f6f3fd; border-radius: 14px; padding: 10px; margin-top: 10px; } .pin-amt.done { opacity: .7; }
.pin-av { font: 700 30px "Space Grotesk", sans-serif; } .pin-ah { color: var(--ok); font-weight: 600; min-height: 18px; }
.pin-step { margin-top: 8px; }

/* business type + program pickers */
.pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pick button { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px; cursor: pointer; font: inherit; color: inherit; position: relative; }
.pick button:hover { border-color: #c4b5fd; } .pick button.on { border-color: var(--brand); background: #f7f3ff; }
.pick button .e { font-size: 24px; display: block; } .pick button b { display: block; margin: 4px 0 2px; } .pick button small { color: var(--muted); font-size: 12px; line-height: 1.35; display: block; }
.pick button .lock { position: absolute; top: 8px; right: 8px; font-size: 11px; background: #fef3c7; color: #92400e; border-radius: 99px; padding: 2px 8px; font-weight: 700; }
.pick button .rec { position: absolute; top: 8px; right: 8px; font-size: 11px; background: #dcfae6; color: var(--ok); border-radius: 99px; padding: 2px 8px; font-weight: 700; }
.auth.wide { max-width: 760px; }
.cat-row { display: grid; grid-template-columns: 130px 1fr 36px; gap: 8px; margin-bottom: 8px; align-items: center; }
.tier-row { display: grid; grid-template-columns: 1fr 120px 76px 36px; gap: 6px 8px; margin-bottom: 12px; align-items: center; }
.tier-row > input:nth-child(4) { grid-column: 1 / 4; grid-row: 2; } .tier-row > button { grid-column: 4; grid-row: 1; }
.tier-row.head { margin-bottom: 2px; }
.unit { position: relative; } .unit input { padding-right: 42px; } .unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }

/* offers / coupons */
.offer { display: flex; gap: 12px; align-items: center; background: #fff; border: 2px dashed #c4b5fd; border-radius: 16px; padding: 12px 14px; margin-top: 10px; position: relative; }
.offer .badge { flex: none; width: 58px; height: 58px; border-radius: 14px; background: linear-gradient(150deg, #6d28d9, #be185d); color: #fff; display: grid; place-items: center; text-align: center;
  font: 700 15px/1.05 "Space Grotesk", sans-serif; padding: 4px; }
.offer b { display: block; } .offer .small { display: block; }
.sec-t { font: 700 15px "Space Grotesk", sans-serif; margin: 18px 0 2px; }
.coupon-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.coupon-row:last-child { border-bottom: 0; }
.mycard { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; color: #fff; text-decoration: none; margin-bottom: 12px; box-shadow: var(--shadow); }
.mycard img, .mycard .ini { width: 50px; height: 50px; border-radius: 12px; background: #fff; object-fit: cover; flex: none; display: grid; place-items: center; font: 700 22px "Space Grotesk", sans-serif; }
.mycard b { display: block; font: 700 17px "Space Grotesk", sans-serif; } .mycard .v { margin-left: auto; text-align: right; font: 700 18px "Space Grotesk", sans-serif; white-space: nowrap; }
.mycard .tags span { display: inline-block; background: rgba(255,255,255,.2); border-radius: 99px; padding: 2px 8px; font-size: 11px; font-weight: 600; margin: 4px 4px 0 0; }
