/* ─────────────────────────────────────────────────────────────
   LEVIAPAY modal design system (Raster) — ported from the modal
   gallery. All classes are `lpm-` prefixed so they never collide
   with the dashboard's existing .modal/.btn/.input/.status styles.
   The existing `.modal#id.active` overlay still handles show/hide;
   the lpm- panel renders inside it.
   ───────────────────────────────────────────────────────────── */

.lpm-modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  width: 100%;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 96px);
  margin: auto;
  animation: lpmIn 0.19s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.lpm-sm { max-width: 420px; }
.lpm-md { max-width: 500px; }
/* panel wrapper inside the existing centered `.modal` overlay (gives mobile gutters) */
#tx-detail-panel { display: flex; justify-content: center; width: 100%; max-width: 540px; padding: 0 20px; }
@keyframes lpmIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.lpm-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.lpm-head.lpm-no-border { border-bottom: 0; padding-bottom: 6px; }
.lpm-eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin: 0 0 7px; }
.lpm-title { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.025em; margin: 0; line-height: 1.15; }
.lpm-sub { font-size: var(--fs-sm); color: var(--ink-2); margin: 6px 0 0; font-weight: 500; line-height: 1.5; }
.lpm-close {
  appearance: none; border: 1px solid var(--line); background: var(--card);
  width: 34px; height: 34px; border-radius: var(--r-ctl); display: grid; place-items: center;
  color: var(--ink-2); cursor: pointer; flex: 0 0 34px; transition: background .14s, color .14s;
}
.lpm-close:hover { background: var(--hover); color: var(--ink); }

.lpm-body { padding: 22px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.lpm-body::-webkit-scrollbar { width: 8px; }
.lpm-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

.lpm-foot {
  display: flex; align-items: center; gap: 10px; justify-content: flex-end;
  padding: 18px 24px; border-top: 1px solid var(--line); flex-shrink: 0; flex-wrap: wrap;
}
.lpm-foot.lpm-split { justify-content: space-between; }

.lpm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid transparent;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.01em; cursor: pointer;
  white-space: nowrap; font-family: inherit; transition: background .14s, border-color .14s, color .14s, transform .04s;
}
.lpm-btn:active { transform: translateY(0.5px); }
.lpm-btn-primary { background: #111111; color: #fff; border-color: #111111; }
.lpm-btn-primary:hover { background: #000000; }
.lpm-btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.lpm-btn-ghost:hover { background: var(--hover); }
.lpm-btn-danger { background: transparent; color: var(--danger); border-color: var(--line-2); }
.lpm-btn-danger:hover { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.lpm-btn-danger-solid { background: #dc2626; color: #fff; border-color: #dc2626; }
.lpm-btn-danger-solid:hover { background: #b91c1c; border-color: #b91c1c; }

.lpm-status { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.lpm-status .lpm-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; background: var(--ink-3); }
.lpm-status.ok { color: var(--success); } .lpm-status.ok .lpm-dot { background: var(--success); }
.lpm-status.bad { color: var(--danger); } .lpm-status.bad .lpm-dot { background: var(--danger); }

.lpm-flex { display: flex; align-items: center; }
.lpm-gap8 { gap: 8px; } .lpm-gap10 { gap: 10px; }
.lpm-muted { color: var(--ink-3); }
.lpm-mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.lpm-kpi { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.lpm-mrow { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 500; }

.lpm-line { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.lpm-line > span:first-child { font-weight: 600; }

.lpm-summ { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 0; }
.lpm-summ-total { border-top: 2px solid var(--line-2); margin-top: 4px; padding-top: 16px; }
.lpm-summ-total .lpm-summ-v { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }

.lpm-callout { display: flex; gap: 12px; padding: 14px 15px; border-radius: var(--r-chip); border: 1px solid var(--line-2); background: var(--field); font-size: var(--fs-sm); line-height: 1.5; font-weight: 500; color: var(--ink-2); }
.lpm-callout .lpm-callout-ic { flex: 0 0 20px; color: var(--accent); margin-top: 1px; }
.lpm-callout.danger { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 6%, transparent); }
.lpm-callout.danger .lpm-callout-ic { color: var(--danger); }

.lpm-label { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; display: block; margin-bottom: 7px; }
.lpm-help { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 6px; font-weight: 500; line-height: 1.45; }
.lpm-input {
  height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-ctl);
  background: var(--field); color: var(--ink); font-size: var(--fs-body); font-family: inherit; outline: 0; width: 100%;
}
.lpm-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.lpm-input::placeholder { color: var(--ink-3); }
