/* Loyalty cards — dashboard design, scoped under .crdts-dash. Page-private `lc-` classes only;
   the shared shell (metrics, header, buttons) stays in dashboard.scoped.css. */

.crdts-dash .lc-primary,.crdts-dash .lc-ghost,.crdts-dash .lc-edit,.crdts-dash .lc-icon{font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.15s}
.crdts-dash .lc-primary{background:var(--ink);color:#fff;border:0;border-radius:9px;padding:11px 18px;font-size:13px;font-weight:700}
.crdts-dash .lc-primary:hover{background:#2c2c27}
.crdts-dash .lc-primary:disabled{opacity:.6;cursor:default}
.crdts-dash .lc-primary svg{width:16px;height:16px}
.crdts-dash .lc-ghost{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:10px 16px;font-size:13px;font-weight:700}
.crdts-dash .lc-ghost:hover{border-color:#d9d9cf}
.crdts-dash .lc-top,.crdts-dash .lc-formbar{display:flex;gap:10px;margin:0 0 18px}
.crdts-dash .spin{animation:lc-spin 1s linear infinite}
@keyframes lc-spin{to{transform:rotate(360deg)}}

/* ---- the card ---------------------------------------------------------------- */
.crdts-dash .lc-card{--stamp:#ffe133;--stamp-ink:#171714;--empty:#e8d9a0;--card-ink:#171714;--card-sub:#7a6f45;
  position:relative;border-radius:16px;padding:16px 18px 14px;background:linear-gradient(160deg,#fff4cf,#ffe7a1);color:var(--card-ink);
  background-size:cover;background-position:center;box-shadow:0 10px 26px rgba(120,90,10,.12);overflow:hidden}
.crdts-dash .lc-card.lc-peach{background:linear-gradient(160deg,#ffe9dc,#ffd2b8);--stamp:#ffb283;--empty:#f0bfa3;--card-sub:#8a5a40}
.crdts-dash .lc-card.lc-ink{background:#171714;--card-ink:#fff;--card-sub:#b9b9ad;--stamp:#ffe133;--empty:#4a4a44}
.crdts-dash .lc-card.lc-cream{background:linear-gradient(160deg,#faf5ec,#f1e8d8);--stamp:#f7b685;--empty:#dccfb6;--card-sub:#8a7d63}
.crdts-dash .lc-card-top small{font-size:11px;color:var(--card-sub)}
.crdts-dash .lc-card-title{display:block;margin:12px 0 2px;font-size:20px;line-height:1.35;font-weight:800;color:var(--card-ink)}
.crdts-dash .lc-card-sub{display:block;font-size:11.5px;color:var(--card-sub)}
.crdts-dash .lc-stamps{display:grid;grid-template-columns:repeat(var(--cols,3),1fr);gap:12px 14px;margin:16px 4px 14px;justify-items:center}
.crdts-dash .lc-stamp{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;border:1.5px dashed var(--empty);background:rgba(255,255,255,.35);color:var(--card-sub);font-style:normal}
.crdts-dash .lc-card.lc-ink .lc-stamp{background:transparent}
.crdts-dash .lc-stamp i{font-style:normal;font-size:12px;font-weight:700;opacity:.7}
.crdts-dash .lc-stamp.on{background:var(--stamp);border:0;color:var(--stamp-ink);box-shadow:0 3px 0 rgba(0,0,0,.08)}
.crdts-dash .lc-stamp.on svg{width:22px;height:22px}
.crdts-dash .lc-stamp img{width:30px;height:30px;object-fit:contain;border-radius:50%}
.crdts-dash .lc-stamp.gift{background:var(--ink);border:0;color:var(--yellow)}
.crdts-dash .lc-card.lc-ink .lc-stamp.gift{background:var(--yellow);color:var(--ink)}
.crdts-dash .lc-stamp.gift svg{width:22px;height:22px}
.crdts-dash .lc-card-foot{display:flex;justify-content:space-between;align-items:center;border-top:1.5px dashed var(--empty);padding-top:10px;font-size:11.5px;font-weight:700}
.crdts-dash .lc-card-foot b{font-size:12px}

/* ---- list page ------------------------------------------------------------------ */
.crdts-dash .lc-hero{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:28px;background:linear-gradient(120deg,#fff5d1,#ffeab0);border:1px solid #f4e2a6;border-radius:16px;padding:30px 34px;margin-bottom:18px;overflow:hidden}
.crdts-dash .lc-eyebrow{font-size:12px;color:#7a6f45;font-weight:600}
.crdts-dash .lc-hero h2{margin:8px 0 10px;font-size:34px;line-height:1.35;font-weight:800;letter-spacing:-.4px}
.crdts-dash .lc-hero h2 em{color:var(--orange);font-style:normal}
.crdts-dash .lc-hero p{margin:0 0 16px;color:#6b6a5f;line-height:1.8;max-width:440px}
.crdts-dash .lc-chips{display:flex;gap:8px;flex-wrap:wrap}
.crdts-dash .lc-chips span{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.7);border:1px solid #efdfa8;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:600}
.crdts-dash .lc-chips svg{width:14px;height:14px}
.crdts-dash .lc-hero-art{position:relative;padding:14px 0 14px 30px}
.crdts-dash .lc-hero-back{position:absolute;inset:26px 14px 0 44px;background:#ffe9a6;border-radius:16px;transform:rotate(-4deg)}
.crdts-dash .lc-hero-art .lc-card{position:relative;transform:rotate(-2deg);max-width:340px;margin-inline:auto}
.crdts-dash .lc-hero-tag{position:absolute;bottom:-4px;right:6px;background:var(--ink);color:#fff;border-radius:10px;padding:9px 14px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;gap:7px}
.crdts-dash .lc-hero-tag svg{width:14px;height:14px;color:var(--yellow)}

.crdts-dash .lc-bar{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap;margin:26px 0 14px}
.crdts-dash .lc-bar h2{margin:0;font-size:20px}
.crdts-dash .lc-bar p{margin:4px 0 0;color:var(--muted);font-size:12.5px}
.crdts-dash .lc-filters{display:flex;gap:8px}
.crdts-dash .lc-search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:0 12px;height:40px}
.crdts-dash .lc-search svg{width:15px;height:15px;color:var(--muted)}
.crdts-dash .lc-search input{border:0;outline:0;background:none;font:inherit;width:170px}
.crdts-dash .lc-filters select{height:40px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 12px;font:inherit;cursor:pointer}
.crdts-dash .lc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
.crdts-dash .lc-tile{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:12px}
.crdts-dash .lc-tile header{display:flex;justify-content:space-between;align-items:center;gap:8px}
.crdts-dash .lc-tile header b{font-size:15px}
.crdts-dash .lc-state{font-size:11px;font-weight:700;border-radius:999px;padding:3px 10px;background:#f1f1ec;color:var(--muted)}
.crdts-dash .lc-state.on{background:#e6f6ec;color:#1f8a4c}
.crdts-dash .lc-tile-meta{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}
.crdts-dash .lc-tile-actions{display:flex;gap:8px;margin-top:auto}
.crdts-dash .lc-edit{flex:1;background:#fff;border:1px solid var(--line);border-radius:9px;padding:10px;font-size:12.5px;font-weight:700;color:var(--ink)}
.crdts-dash .lc-edit:hover{border-color:var(--orange);color:var(--orange)}
.crdts-dash .lc-edit svg{width:14px;height:14px}
.crdts-dash .lc-icon{width:40px;height:40px;background:#fff;border:1px solid var(--line);border-radius:9px;color:var(--muted)}
.crdts-dash .lc-icon:hover{color:var(--ink);border-color:#d9d9cf}
.crdts-dash .lc-icon.danger:hover{color:#c0392b;border-color:#f0c4be}
.crdts-dash .lc-icon svg{width:15px;height:15px}
.crdts-dash .lc-icon:disabled{opacity:.5;cursor:default}
.crdts-dash .lc-add{min-height:300px;border:1.5px dashed #ddd9c8;background:transparent;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;cursor:pointer;font-family:inherit;color:var(--ink);padding:20px;text-align:center}
.crdts-dash .lc-add:hover{border-color:var(--orange);background:#fffaf0}
.crdts-dash .lc-add span{width:54px;height:54px;border-radius:14px;background:var(--yellow);display:grid;place-items:center;box-shadow:0 6px 14px rgba(200,160,0,.25)}
.crdts-dash .lc-add span svg{width:22px;height:22px}
.crdts-dash .lc-add small{color:var(--muted);max-width:230px;line-height:1.7}
.crdts-dash .lc-none{text-align:center;color:var(--muted);margin:18px 0}
.crdts-dash .lc-flow{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 22px;margin-top:22px}
.crdts-dash .lc-flow b{font-size:14px}
.crdts-dash .lc-flow p{margin:4px 0 0;color:var(--muted);font-size:12.5px}
.crdts-dash .lc-flow ol{list-style:none;display:flex;align-items:center;gap:8px;margin:0;padding:0}
.crdts-dash .lc-flow li{background:#fff3c8;border-radius:9px;padding:8px 14px;font-size:12.5px;font-weight:700}
.crdts-dash .lc-flow li[aria-hidden]{background:none;padding:0;color:var(--muted)}

/* ---- form page ------------------------------------------------------------------- */
.crdts-dash .lc-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}
.crdts-dash .lc-panel{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.crdts-dash .lc-tabs{display:flex;border-bottom:1px solid var(--line);overflow-x:auto}
.crdts-dash .lc-tabs button{flex:1;min-width:max-content;background:none;border:0;border-bottom:2px solid transparent;padding:14px 12px;font:inherit;font-size:12.5px;font-weight:600;color:var(--muted);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.crdts-dash .lc-tabs button i{font-style:normal;width:20px;height:20px;border-radius:50%;background:#f1f1ec;display:grid;place-items:center;font-size:11px}
.crdts-dash .lc-tabs button.on{color:var(--orange);border-bottom-color:var(--orange)}
.crdts-dash .lc-tabs button.on i{background:var(--orange);color:#fff}
.crdts-dash .lc-step{padding:26px 28px 8px}
.crdts-dash .lc-step h2{margin:0 0 4px;font-size:20px}
.crdts-dash .lc-lead{margin:0 0 22px;color:var(--muted);font-size:13px}
.crdts-dash .lc-field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px;border:0;padding:0;min-width:0}
.crdts-dash .lc-label{font-size:13px;font-weight:700}
.crdts-dash .lc-field input:not([type=checkbox]):not([type=range]),.crdts-dash .lc-field select,.crdts-dash .lc-field textarea{border:1px solid var(--line);border-radius:9px;background:#fff;padding:12px 14px;font:inherit;font-size:13.5px;outline:0;width:100%;box-sizing:border-box}
.crdts-dash .lc-field input:focus,.crdts-dash .lc-field select:focus,.crdts-dash .lc-field textarea:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(247,92,10,.1)}
.crdts-dash .lc-field textarea{resize:vertical}
.crdts-dash .lc-hint{color:var(--muted);font-size:11.5px}
.crdts-dash .lc-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.crdts-dash .lc-branches{gap:10px}
.crdts-dash .lc-check{display:flex;align-items:center;gap:10px;font-size:13.5px;cursor:pointer}
.crdts-dash .lc-check input,.crdts-dash .lc-toggle input{accent-color:var(--orange);width:18px;height:18px;flex:none}
.crdts-dash .lc-swatches{display:flex;gap:10px}
.crdts-dash .lc-swatch{width:44px;height:44px;border-radius:12px;border:2px solid var(--line);cursor:pointer;display:grid;place-items:center;color:var(--ink)}
.crdts-dash .lc-swatch.lc-sun{background:#ffe7a1}
.crdts-dash .lc-swatch.lc-peach{background:#ffd2b8}
.crdts-dash .lc-swatch.lc-ink{background:#171714;color:#fff}
.crdts-dash .lc-swatch.lc-cream{background:#f1e8d8}
.crdts-dash .lc-swatch.on{border-color:var(--orange);box-shadow:0 0 0 3px rgba(247,92,10,.15)}
.crdts-dash .lc-swatch svg{width:18px;height:18px}
.crdts-dash .lc-shapes{display:flex;gap:10px;flex-wrap:wrap}
.crdts-dash .lc-shapes button{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px 16px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.crdts-dash .lc-shapes button svg{width:16px;height:16px}
.crdts-dash .lc-shapes button.on{border-color:var(--orange);background:#fff6ee;color:var(--orange)}
.crdts-dash .lc-upload{border:1.5px dashed #ddd9c8;border-radius:12px;background:#fcfcfa;padding:22px;display:flex;flex-direction:column;align-items:center;gap:6px;font-family:inherit;color:var(--ink);cursor:pointer;width:100%;box-sizing:border-box}
.crdts-dash .lc-upload:hover{border-color:var(--orange)}
.crdts-dash .lc-upload svg{width:22px;height:22px;color:var(--muted)}
.crdts-dash .lc-upload small{color:var(--muted);font-size:11.5px}
.crdts-dash .lc-upload.has{flex-direction:row;justify-content:space-between;cursor:default;padding:10px 14px}
.crdts-dash .lc-upload.has img{height:56px;max-width:140px;object-fit:contain;border-radius:8px}
.crdts-dash .lc-upload.has button{background:none;border:0;color:#c0392b;font:inherit;font-weight:700;cursor:pointer}
.crdts-dash .lc-note{display:flex;gap:10px;align-items:flex-start;background:#fff8ea;border:1px solid #f6e3b4;border-radius:10px;padding:12px 14px;font-size:12px;color:#7a6a3a;line-height:1.7}
.crdts-dash .lc-note svg{width:16px;height:16px;flex:none;margin-top:2px}
.crdts-dash .lc-toggle{display:flex;gap:14px;align-items:flex-start;padding:14px 0;border-top:1px solid var(--line);cursor:pointer}
.crdts-dash .lc-toggle span{display:flex;flex-direction:column;gap:3px}
.crdts-dash .lc-toggle b{font-size:13.5px}
.crdts-dash .lc-toggle small{color:var(--muted);font-size:12px}
.crdts-dash .lc-sub{margin:18px 0 10px;font-size:14px}
.crdts-dash .lc-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 28px 22px;border-top:1px solid var(--line);margin-top:10px}
.crdts-dash .lc-nav small{color:var(--muted);font-size:12px}
.crdts-dash .lc-nav div{display:flex;gap:10px}

/* ---- the live preview -------------------------------------------------------------- */
.crdts-dash .lc-side{position:sticky;top:90px;display:flex;flex-direction:column;gap:14px}
.crdts-dash .lc-side-head{display:flex;justify-content:space-between;align-items:center}
.crdts-dash .lc-side-head h2{margin:0;font-size:15px}
.crdts-dash .lc-side-head span{background:#fff3c8;color:#7a6f45;font-size:11px;font-weight:700;border-radius:999px;padding:4px 10px}
.crdts-dash .lc-phone{background:#fff;border:1px solid var(--line);border-radius:28px;padding:12px 14px 16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 12px 30px rgba(0,0,0,.06)}
.crdts-dash .lc-phone-bar{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:700;padding:0 8px}
.crdts-dash .lc-phone-bar i{width:70px;height:18px;background:#171714;border-radius:10px;display:block}
.crdts-dash .lc-phone-title{text-align:center;font-size:14px;font-weight:800}
.crdts-dash .lc-progress{display:flex;flex-wrap:wrap;justify-content:space-between;font-size:11.5px;gap:6px}
.crdts-dash .lc-progress b{font-weight:700}
.crdts-dash .lc-progress div{flex-basis:100%;height:6px;background:#f1f1ec;border-radius:6px;overflow:hidden}
.crdts-dash .lc-progress div i{display:block;height:100%;background:var(--orange);border-radius:6px;transition:width .2s}
.crdts-dash .lc-reward{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.crdts-dash .lc-reward span{width:44px;height:44px;border-radius:10px;background:#fff3c8;display:grid;place-items:center;flex:none;overflow:hidden}
.crdts-dash .lc-reward span img{width:100%;height:100%;object-fit:cover}
.crdts-dash .lc-reward span svg{width:20px;height:20px}
.crdts-dash .lc-reward div{display:flex;flex-direction:column;gap:2px}
.crdts-dash .lc-reward small{color:var(--muted);font-size:11px}
.crdts-dash .lc-reward b{font-size:13px}
.crdts-dash .lc-scan{background:var(--ink);color:#fff;border-radius:12px;padding:12px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12.5px;font-weight:700}
.crdts-dash .lc-scan svg{width:16px;height:16px}
.crdts-dash .lc-slider{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--muted)}
.crdts-dash .lc-slider input{accent-color:var(--orange)}
.crdts-dash .lc-summary{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px;font-size:12.5px}
.crdts-dash .lc-summary ul{margin:8px 0 0;padding-inline-start:18px;display:flex;flex-direction:column;gap:5px;color:#55554c;line-height:1.6}

@media(max-width:980px){
  .crdts-dash .lc-layout{grid-template-columns:1fr}
  .crdts-dash .lc-side{position:static}
  .crdts-dash .lc-hero{grid-template-columns:1fr;padding:22px}
  .crdts-dash .lc-hero h2{font-size:26px}
}
@media(max-width:560px){
  .crdts-dash .lc-two{grid-template-columns:1fr}
  .crdts-dash .lc-step{padding:20px 16px 4px}
  .crdts-dash .lc-nav{padding:14px 16px 18px;flex-wrap:wrap}
  .crdts-dash .lc-filters{width:100%}
  .crdts-dash .lc-search{flex:1}
  .crdts-dash .lc-search input{width:100%}
  .crdts-dash .lc-grid{grid-template-columns:1fr}
}

/* ---- handing a gift over / the visit code ---------------------------------------- */
.crdts-dash .lc-redeem{display:grid;grid-template-columns:1fr auto;gap:14px 24px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 22px;margin-top:22px}
.crdts-dash .lc-redeem b{font-size:14px}
.crdts-dash .lc-redeem p{margin:4px 0 0;color:var(--muted);font-size:12.5px}
.crdts-dash .lc-redeem form{display:flex;gap:10px}
.crdts-dash .lc-redeem input{border:1px solid var(--line);border-radius:9px;padding:11px 14px;font:inherit;width:150px;text-align:center;letter-spacing:2px;outline:0}
.crdts-dash .lc-redeem input:focus{border-color:var(--orange)}
.crdts-dash .lc-redeemed{grid-column:1/-1;display:flex;align-items:center;gap:8px;background:#e6f6ec;color:#1f6b3f;border-radius:10px;padding:10px 14px;font-weight:700}
.crdts-dash .lc-redeemed svg{width:16px;height:16px}
.crdts-dash .lc-gift{grid-column:1/-1;display:flex;align-items:center;gap:14px;background:#fff8e6;border:1px solid #f3dca0;border-radius:12px;padding:12px 14px}
.crdts-dash .lc-gift img,.crdts-dash .lc-gift-ph{width:56px;height:56px;border-radius:12px;object-fit:cover;flex:none;background:#ffe9a8;display:grid;place-items:center}
.crdts-dash .lc-gift-ph svg{width:24px;height:24px}
.crdts-dash .lc-gift>div{display:grid;gap:2px;flex:1;min-width:0}
.crdts-dash .lc-gift small{color:var(--muted);font-size:12px}
@media(max-width:700px){.crdts-dash .lc-redeem{grid-template-columns:1fr}.crdts-dash .lc-redeem form{flex-wrap:wrap}}
