/* sobre.cash — vista "Links de pago" (la carga links.js). */
.links-root { display: grid; gap: 1.2rem; margin-top: 1rem; }
.lk-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.lk-head .lead { max-width: 40rem; color: var(--text-2); }
.lk-form { display: grid; gap: 1rem; max-width: 40rem; }
.lk-form h2 { font-size: 1.2rem; }
.lk-form input[type=text] { width: 100%; }
.lk-row { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.lk-row .field + .field { margin-top: 0; }
.lk-range { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.lk-range .field + .field { margin-top: 0; }

.lk-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.lk-card { display: grid; gap: .35rem; align-content: start; min-width: 0; }
.lk-card.is-paused .lk-amount, .lk-card.is-paused .lk-title { color: var(--muted); }
.lk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.lk-title { font-size: 1.15rem; color: var(--text); overflow-wrap: anywhere; }
.lk-amount { font: 600 clamp(1.7rem, 7vw, 2.1rem)/1.1 var(--ui); letter-spacing: -0.035em; color: var(--heading); margin-top: .35rem; }
.lk-stats { font-size: .92rem; color: var(--text-2); margin-top: .2rem; }
.lk-url { font: 500 .8rem/1.4 var(--mono); color: var(--muted); overflow-wrap: anywhere; text-decoration: none; padding-top: .6rem; border-top: 1px dashed var(--line); margin-top: .5rem; }
.lk-url:hover { color: var(--aqua-text); }
.lk-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.lk-actions .btn .ico { width: 16px; height: 16px; }
.lk-actions .lk-del { margin-left: auto; color: var(--bad); }
.lk-empty { padding: 2rem 1rem; }

/* Atajo desde Cobrar (en el celu la barra no tiene lugar para Links). */
.lk-hop { display: flex; align-items: center; gap: .7rem; margin: .2rem 0 1rem; padding: .75rem .95rem; border: 1px dashed var(--line); border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-size: .92rem; }
.lk-hop .ico { width: 20px; height: 20px; flex: none; color: var(--aqua-text); }
.lk-hop strong { color: var(--text); font-weight: 600; }
.lk-hop:hover { border-color: var(--aqua-deep); }

.lk-dialog { width: min(26rem, calc(100vw - 2 * var(--gutter))); max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.lk-dialog::backdrop { background: rgba(25, 33, 61, .16); }
.lk-dialog { display: none; }
.lk-dialog[open] { display: grid; gap: .9rem; }
.lk-dialog .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lk-dialog .sheet-head h2 { font-size: 1.2rem; }
.lk-dialog .sheet-x { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; }
.lk-dialog .sheet-x svg { width: 18px; height: 18px; }
.lk-dlg-actions { justify-content: flex-end; }
.lk-qr-img { width: 100%; max-width: 20rem; justify-self: center; border-radius: var(--r-sm); background: #fff; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #ffffff; }
.btn-danger:hover:not(:disabled) { filter: brightness(1.08); }

#lk-print { display: none; }
@media print {
  body > *:not(#lk-print) { display: none !important; }
  body { background: #fff; }
  #lk-print { display: block; }
  #lk-print img { width: 12cm; margin: 1.5cm auto; }
}
@media (max-width: 519px) { .lk-range { grid-template-columns: 1fr; } }
