/* Blue background, white receipt with serrated bottom */
body{margin:0;background:#2c36ff;color:#111827;font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,'Helvetica Neue',sans-serif}
.wrap{max-width:1100px;margin:0 auto;padding:16px}
.panel{background:#ffffff;border:1px solid #e6e9ef;border-radius:14px;box-shadow:0 10px 22px rgba(0,0,0,.08);padding:16px;margin:12px 0}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.field label{display:block;font-size:12px;color:#6b7280;margin:0 0 6px 2px}
.field input{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;background:#fff;font-size:14px}
button{background:#111827;color:#fff;border:0;border-radius:10px;padding:12px 18px;font-weight:800;cursor:pointer}
button:disabled{background:#9aa3ad;cursor:not-allowed}

/* Preview */
.preview{display:flex;flex-direction:column;align-items:center}
.canvas{position:relative;width:420px;height:auto}
.bg{background:#4d55ff;border-radius:16px;box-shadow:0 18px 40px rgba(0,0,0,.25) inset; height:160px}
.receipt{background:#fff;border-radius:12px;position:relative;top:-30px;margin:0 14px;border:1px solid #e5e7eb;box-shadow:0 10px 20px rgba(0,0,0,.12)}
.r-head{padding:14px 16px 10px;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.amount{font-size:32px;font-weight:900}
.status{grid-column:1/2;color:#6b7280}
.time{grid-column:1/2;color:#6b7280;font-size:12px}
.sep{height:1px;background:repeating-linear-gradient(90deg,#e5e7eb, #e5e7eb 8px, transparent 8px, transparent 16px)}
.r-body{padding:14px 16px}
.who{font-weight:900}
.muted{color:#6b7280;font-size:14px}
.r-foot{padding:14px 16px 20px;color:#6b7280;text-align:center}

/* Zig-zag serrated bottom */
.zig{position:relative;height:18px;background:transparent}
.zig:before{content:'';position:absolute;left:0;right:0;top:-1px;height:18px;background:linear-gradient(-45deg, transparent 75%, #e5e7eb 75%),linear-gradient(45deg, transparent 75%, #e5e7eb 75%);background-size:12px 12px; background-position:0 0,6px 0}

.watermark{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:rgba(0,0,0,.04);font-weight:900;letter-spacing:1.5px;transform:rotate(-18deg);pointer-events:none;user-select:none}
