/* Top-up screen (/obols). Table chrome is shared .bf-table; the pending-order strip reuses subscriptions .sub-notice. */

.topup-screen { max-width: 1100px; }

.tu-h2 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 500;
  margin: 0;
}

.tu-bar {
  display: flex; align-items: flex-end; justify-content: center;
  flex-wrap: wrap; gap: 16px;
  margin: 26px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}
.tu-bar-h { font-size: 1.7rem; text-align: center; }

.tu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.tu-pack {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26px 18px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tu-pack { cursor: pointer; }
.tu-pack:hover { border-color: var(--bronze); transform: translateY(-2px); }
/* .is-popular carries NO box styling — the badge alone marks it (the subscriptions rule:
   box emphasis follows the viewer's selection, never the catalog's pick). */
.tu-pack.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 45%, transparent), var(--shadow-1);
}
.tu-pack.is-selected .tu-pack-n { color: var(--gold); }

/* Mirrors .sub-card-badge (subscriptions.css) — the two stores' "pick this one" pills must
   read as one system. */
.tu-pack-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 3px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--bronze-gradient); color: var(--on-bronze);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.tu-pack-top { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tu-pack-top .obol-coin.lg { font-size: 1.5rem; }
.tu-pack-n { font-size: 1.75rem; color: var(--ink); line-height: 1.05; }
.tu-pack-unit {
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.tu-pack-bonus {
  margin-top: 10px;
  font-size: 0.74rem; font-weight: 600; color: var(--laurel-2);
  padding: 2px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--laurel) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--laurel) 32%, transparent);
}
.tu-pack-bonus.is-none {
  background: none; border-color: transparent; color: var(--ink-3); font-weight: 500;
}
.tu-pack-rule {
  width: 44px; height: 1px; margin: 14px 0 12px;
  background: var(--divider);
}
.tu-pack-price {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--gold);
  line-height: 1.1;
}
.tu-pack-alt { font-size: 0.74rem; min-height: 1.1em; }
.tu-pack-cta { width: 100%; margin-top: 12px; }
.tu-pack-rate {
  margin-top: 8px;
  font-size: 0.66rem; color: var(--ink-4, var(--ink-3)); opacity: 0.75;
}

.tu-foot { margin: 16px 0 0; line-height: 1.6; }

.tu-how, .tu-spendwrap { margin-top: 34px; }
.tu-how-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin: 14px 0 0; padding: 0; list-style: none;
}
.tu-how-step {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-m);
}
.tu-how-n {
  flex: none;
  width: 26px; height: 26px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bronze-deep); color: var(--gold);
  border: 1px solid var(--bronze);
  font-size: 0.8rem; font-weight: 700;
}
.tu-how-t { font-weight: 600; margin-bottom: 3px; }
.tu-how-d { margin: 0; line-height: 1.55; }

.tu-spend-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px; margin-top: 14px;
}
.tu-spend {
  position: relative; text-align: left;
  display: flex; flex-direction: column; gap: 3px;
  padding: 18px 44px 18px 20px;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-m);
  font: inherit; color: var(--ink); cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tu-spend:hover { border-color: var(--bronze); background: var(--bg-2); }
.tu-spend-t { font-family: var(--font-display); font-size: 1.05rem; }
.tu-spend-d { line-height: 1.5; }
.tu-spend-go {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--bronze-2); font-size: 1.1rem;
}

/* Full width: the payment page is the whole screen now (its own URL), not a card floating
   in the middle of the pack shelf. */
.tu-handoff {
  padding: 24px;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-l);
}
/* Prose still gets a measure — a step list running the full width of a wide screen is unreadable.
   .tu-warn is excluded: it is a boxed alert, and a capped one leaves a ragged half-width panel. */
.tu-handoff > p:not(.tu-warn),
.tu-steps { max-width: 70ch; }
.tu-handoff-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.tu-handoff-pick .bf-seg { flex: 0 0 auto; }
.tu-ref-card {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px dashed var(--bronze);
  border-radius: var(--radius-m);
}
.tu-ref-label { flex: 1 1 100%; }
.tu-ref {
  flex: 1 1 auto;
  font-size: 1.4rem; font-weight: 700; letter-spacing: 0.1em; color: var(--gold);
}
.tu-steps { margin: 0 0 18px; padding-left: 20px; color: var(--ink-2); line-height: 1.7; }
.tu-handoff-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tu-warn {
  margin: 16px 0 0; padding: 10px 14px;
  background: color-mix(in srgb, var(--porphyry) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--porphyry) 40%, transparent);
  border-radius: var(--radius-m);
  color: var(--porphyry-2); font-size: 0.85rem;
}

/* No top margin: the section is the page's main cell now, not a block appended under the coin
   shelf — a margin here drops the table below its own filter rail. */
.tu-orders { margin-top: 0; }
.tu-ref-link {
  all: unset;
  cursor: pointer;
  font: inherit; font-weight: 600;
  color: var(--bronze-2);
}
.tu-ref-link:hover { color: var(--gold); }
.tu-ref-link:focus-visible { outline: 2px solid var(--bronze-2); outline-offset: 2px; }
.tu-notice-ref { color: var(--gold); font-weight: 600; }

.tu-status {
  display: inline-block; padding: 1px 9px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600;
}
.tu-status-pending   { background: color-mix(in srgb, var(--bronze) 16%, transparent); color: var(--bronze-2); }
.tu-status-paid      { background: color-mix(in srgb, var(--laurel) 16%, transparent); color: var(--laurel-2); }
.tu-status-cancelled,
.tu-status-expired   { background: var(--bg-3); color: var(--ink-3); }

@media (max-width: 768px) {
  .tu-hero { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  .tu-title { font-size: 1.6rem; }
  .tu-bar-h { font-size: 1.4rem; }
  .tu-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

.tu-ledger .tu-table td:first-child { white-space: nowrap; }
.tu-led-ico { display: inline-block; width: 1.2em; color: var(--bronze-2); }
.tu-led-in  { color: var(--laurel-2); }
.tu-led-out { color: var(--ink-2); }
/* Opening-balance line: dimmed and rule-separated so it never reads as a transaction. */
.tu-led-open td { color: var(--ink-3); border-top: 1px solid var(--border-strong); }

/* Same grid as .lb-layout / .fb-layout: rail in the table row only, so its collapsing height never inflates the toolbar row. */
.tu-led-layout > .nl-filters-rail { grid-area: filters; }
.tu-led-toolbar {
  grid-area: toolbar;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.tu-led-main { grid-area: main; min-width: 0; }
/* Compact drops the columns a reader can infer: the running Balance in the ledger, and the coin
   count + Status on the orders table. No responsive force-hide — .is-compact is the ONLY thing
   that drops .tu-col-opt, or the toggle is inert on a phone. */
.tu-table.is-compact .tu-col-opt { display: none; }

/* Both wallet tables end in a trailing column — the ledger date and the orders action cell. */
.tu-led-main .tu-table th:last-child,
.tu-led-main .tu-table td:last-child,
.tu-led-main .tu-table .tu-col-date { text-align: right; }

/* Page header for the wallet tables. The balance card is the Armory's .am-obols value for value,
   so the shop and the wallet never disagree on how a balance reads. */
.tu-hero {
  display: flex; justify-content: space-between; align-items: center;
  gap: 30px;
  margin-bottom: 16px;
  padding: 28px 32px;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(184, 155, 95, 0.12), transparent 55%),
    var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
}
.tu-hero-copy { min-width: 0; }
.tu-balance {
  display: flex; align-items: center; gap: 14px; flex: none;
  padding: 14px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
}
.tu-date-cap {
  color: var(--bronze-2); font-size: 0.78rem; font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

/* Tablet and phone: the pack shelf is THE shared carousel (components/carousel.css); only the
   card width lives here. Cards are sized so the next one always peeks — that overhang is the only
   affordance saying there is more to the right. Placed last in the file so it out-ranks the 760px
   grid rule at equal specificity. */
@media (max-width: 1024px) {
  /* Tablet fits two and a bit; a 74% card there would be a single billboard per screen. */
  .tu-grid .tu-pack { flex: 0 0 42%; }
  .topup-screen .car-strip { margin-top: 4px; }
}
@media (max-width: 640px) {
  .tu-grid .tu-pack { flex: 0 0 74%; }
}

/* The super-admin queue and the pack anchor. Two framed panels stacked; both use the shared
   .bf-table family, so only the caption and the numeric field width live here. */
.tu-admin + .tu-admin { margin-top: 16px; }
.tu-admin-cap {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}
.tu-admin .tu-admin-num {
  flex: 0 0 auto;
  width: 8ch;
  min-width: 0;
  text-align: right;
}
