/* Rewards & Gifts Engine cabinet (gf-*). Tokens only. */
.gf-layout { align-items: start; }
.gf-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gf-muted { color: var(--muted); font-size: 12.5px; }
.gf-nowrap { white-space: nowrap; }
.gf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gf-table code, .gf-limit code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12.5px; }

.gf-limits { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.gf-limits-label { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.gf-limit { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.gf-limit code { color: var(--accent); }

.gf-csv { min-height: 190px; line-height: 1.6; }
.gf-actions { margin-top: 12px; }

.gf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.gf-chip { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-3); color: var(--text-2); animation: dm-rise 0.25s ease; }
.gf-chip.good { background: var(--good-soft); color: var(--good-text); }
.gf-chip.bad { background: var(--critical-soft); color: var(--critical-text); }

.gf-meter-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 6px; flex-wrap: wrap; }
.gf-meter { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-bottom: 14px; }
.gf-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-3)); transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gf-meter.is-over span { background: var(--critical); }
.gf-warn { margin: -6px 0 14px; padding: 8px 12px; border-radius: 10px; background: var(--critical-soft); color: var(--critical-text); font-size: 13px; font-weight: 600; }

.gf-table { min-width: 520px; }
.gf-line { color: var(--muted); font-variant-numeric: tabular-nums; width: 32px; }
.gf-cust { font-weight: 600; white-space: nowrap; }
.gf-bad-row td { background: color-mix(in srgb, var(--critical-soft) 45%, transparent); }
.gf-reason { font-size: 12px; color: var(--critical-text); margin-top: 3px; }
.gf-publish { display: flex; justify-content: flex-end; margin-top: 14px; }

.gf-claimed { display: flex; align-items: center; gap: 8px; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gf-mini { width: 64px; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; flex: none; }
.gf-mini span { display: block; height: 100%; width: 0; background: var(--good); border-radius: inherit; transition: width 0.6s ease; }
.gf-cancel { height: 32px; padding: 0 12px; font-size: 13px; }
.gf-fresh td { animation: gf-fresh 1.8s ease; }
@keyframes gf-fresh { 0%, 30% { background: var(--accent-soft); } 100% { background: transparent; } }

.gf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--muted); }
.gf-dot-published { background: var(--accent); }
.gf-dot-claimed { background: var(--good); }
.gf-dot-cancelled { background: var(--critical); }

/* Phone mockup */
.gf-phone-card { position: sticky; top: 76px; }
.gf-phone {
  position: relative;
  width: 100%;
  max-width: 290px;
  margin: 4px auto 0;
  padding: 12px;
  border-radius: 44px;
  background: var(--invert-bg);
  box-shadow: var(--shadow-lg);
}
.gf-notch { position: absolute; top: 20px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 999px; background: var(--invert-bg); z-index: 2; }
.gf-screen { position: relative; min-height: 470px; border-radius: 34px; overflow: hidden; background: var(--bg-soft); display: flex; flex-direction: column; }
.gf-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px 0; font-size: 12px; font-weight: 700; color: var(--text); }
.gf-bars { display: inline-flex; align-items: flex-end; gap: 2px; }
.gf-bars i { display: block; width: 3px; border-radius: 1px; background: currentColor; }
.gf-bars i:nth-child(1) { height: 5px; }
.gf-bars i:nth-child(2) { height: 8px; }
.gf-bars i:nth-child(3) { height: 11px; }
.gf-app-head { padding: 26px 20px 10px; font: 650 20px/1.2 var(--font-display); letter-spacing: -0.02em; }
.gf-screen-body { flex: 1; display: flex; flex-direction: column; padding: 0 16px 20px; }
.gf-screen-empty { margin: auto 0; text-align: center; color: var(--muted); font-size: 14px; padding: 20px 8px; }

.gf-gift { display: flex; flex-direction: column; gap: 14px; animation: dm-rise 0.3s ease; }
.gf-gift-hi { font-size: 15px; font-weight: 600; color: var(--text-2); }
.gf-gift-card {
  position: relative;
  overflow: hidden;
  padding: 20px 18px;
  border-radius: 20px;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: var(--shadow);
}
.gf-gift-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-ink) 14%, transparent);
}
.gf-gift-type { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.gf-gift-value { position: relative; font: 700 24px/1.2 var(--font-display); letter-spacing: -0.02em; margin: 8px 0 12px; }
.gf-gift-note { font-size: 12.5px; opacity: 0.85; }
.gf-claim { width: 100%; }

.gf-success { margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 12px 4px; }
.gf-check { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--good-soft); color: var(--good-text); }
.gf-check svg { width: 36px; height: 36px; }
.gf-success-title { font: 700 22px/1.2 var(--font-display); color: var(--good-text); }
.gf-success-sub { font-size: 14px; color: var(--text-2); }
.gf-success.is-anim .gf-check { animation: gf-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1); }
.gf-success.is-anim .gf-check path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: gf-draw 0.45s 0.2s ease forwards; }
.gf-success.is-anim .gf-success-title, .gf-success.is-anim .gf-success-sub { animation: dm-rise 0.4s 0.15s ease both; }
@keyframes gf-pop { from { transform: scale(0.4); opacity: 0; } }
@keyframes gf-draw { to { stroke-dashoffset: 0; } }

.gf-dialog-body { color: var(--text-2); font-size: 14.5px; margin: 10px 0 20px; }
.gf-dialog-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .gf-phone-card { position: static; }
}
/* Phones: keep "Cancel unclaimed" reachable without sideways scrolling. */
@media (max-width: 600px) {
  [data-campaigns] .gf-table th:nth-child(2), [data-campaigns] .gf-table td:nth-child(2),
  [data-campaigns] .gf-table th:nth-child(3), [data-campaigns] .gf-table td:nth-child(3),
  [data-campaigns] .gf-table th:nth-child(4), [data-campaigns] .gf-table td:nth-child(4) { display: none; }
  [data-campaigns] .gf-table { min-width: 0; }
  .gf-mini { display: none; }
  .gf-cancel { height: auto; min-height: 32px; padding: 6px 10px; white-space: normal; text-align: center; line-height: 1.25; }
}
@media (max-width: 400px) {
  .gf-screen { min-height: 420px; }
  .gf-phone { border-radius: 38px; padding: 10px; }
}
