/* X4TAR — redeem + claim dialogs and the "Your claims" table (store.html, rewards.html). Builds on site.css. */

/* ---------- dialog ---------- */
.x4-dlg { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 18px; background: none; color: var(--txt); overflow: visible; }
.x4-dlg::backdrop { background: rgba(2, 6, 4, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.x4-dlg[open] { animation: x4-dlg-in .28s cubic-bezier(.16, 1, .3, 1); }
.x4-dlg[open]::backdrop { animation: x4-fade .2s ease-out; }
@keyframes x4-dlg-in { from { opacity: 0; translate: 0 14px; scale: .98; } }
.x4-dlg-in { position: relative; display: flex; flex-direction: column; gap: 18px; max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; padding: 26px 26px 22px; border-radius: 18px;
  background: linear-gradient(180deg, #141D17, #0C120E); border: 1px solid rgba(92, 245, 143, .28); border-top-color: rgba(255, 255, 255, .16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(46, 224, 107, .08), inset 0 1px 0 rgba(255, 255, 255, .06); }
.x4-dlg-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .04); color: var(--dim); cursor: pointer; }
.x4-dlg-x:hover { color: var(--txt); background: rgba(255, 255, 255, .08); }
.x4-dlg-x svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.x4-dlg-hd { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.x4-dlg-hd .ico.red { color: #FF8F8F; border-color: rgba(255, 99, 99, .35); }
.x4-dlg-hd .eyebrow { font-size: 11px; }
.x4-dlg-hd h2 { margin: 4px 0 0; font-size: clamp(22px, 5vw, 28px); line-height: 1.05; color: #fff; overflow-wrap: anywhere; }
.x4-dlg-body { display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.55; color: var(--mut); }
.x4-dlg-body p { margin: 0; }
.x4-dlg-body b { color: var(--txt); }
.x4-dlg-fine { font-size: 13px; color: var(--dim); }
.x4-dlg-rows { margin: 0; display: flex; flex-direction: column; border-radius: 12px; background: var(--ins); border: 1px solid var(--edge); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .5); }
.x4-dlg-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--edge); }
.x4-dlg-rows > div:first-child { border-top: 0; }
.x4-dlg-rows dt { font-size: 13.5px; color: var(--mut); }
.x4-dlg-rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--txt); text-align: right; overflow-wrap: anywhere; }
.x4-dlg-rows .x4-sum dd { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 19px; color: var(--g1); }
.x4-dlg-rows .x4-neg dd { color: #FF8F8F; }
.x4-dlg-field { display: flex; flex-direction: column; gap: 7px; }
.x4-dlg-field > span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.x4-dlg-field > span i { font-style: normal; letter-spacing: .06em; text-transform: none; color: var(--dim); }
.x4-dlg-field textarea { box-sizing: border-box; width: 100%; min-height: 64px; padding: 12px 14px; resize: vertical; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: var(--ins); color: var(--txt); font: inherit; font-size: 15px; line-height: 1.45; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6); }
.x4-dlg-field textarea:focus { outline: 2px solid var(--g1); outline-offset: 1px; }
.x4-dlg-msg { margin-top: -6px; font-size: 13.5px; color: #FF8F8F; }
.x4-dlg-msg:empty { display: none; }
.x4-dlg-act { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.x4-dlg-act .b { flex: 0 1 auto; }
@media (max-width: 520px) {
  .x4-dlg-in { padding: 22px 18px 18px; }
  .x4-dlg-act .b { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) { @keyframes x4-dlg-in { from { opacity: 0; } } }

/* ---------- rewards: card status + "Your claims" ---------- */
[data-claim-status].st-ok { color: var(--g1); }
[data-claim-status].st-wait { color: var(--gold); }
.tbl.rf-cols.my-claims .tr { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 120px; }
.my-claims .rw { min-width: 0; }
.my-claims .rw b { display: block; font-weight: 700; }
.my-claims .rw small { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--dim); }
.my-claims .r.paid { font-weight: 800; color: var(--g1); }
