/* ── STORE 🛒 — memberships, credit packs, checkout ──────────────── */

/* Tier badge. Also used on the profile page and in the admin user list, so it
   lives here as the single definition of what a tier looks like. */
.bl-badge {
  display: inline-block;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border: 2px solid var(--ink-line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--panel-shadow);
  white-space: nowrap;
}
.bl-badge--premium { background: var(--riso-yellow); }
.bl-badge--promax { background: var(--riso-purple); color: #fff; }
.bl-badge--coordinator { background: var(--riso-teal); color: #fff; }
.bl-badge--admin { background: var(--riso-pink); color: #fff; }

.bl-standing { margin-bottom: 14px; }
.bl-coins {
  font-size: 22px;
  font-weight: 700;
  color: var(--credit-gold-deep);
}
.bl-expiry { margin-top: 8px; }

/* ── item grids ── */
.bl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 700px) { .bl-grid { grid-template-columns: 1fr 1fr; } }
.bl-grid--packs { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .bl-grid--packs { grid-template-columns: repeat(3, 1fr); } }

.bl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 14px;
  border: var(--border-ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  font-family: var(--f-body);
  color: var(--ink);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}
.bl-card:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--panel-shadow); }
.bl-card.is-picked {
  background: var(--paper);
  box-shadow: var(--shadow-harder);
  transform: translate(-1px, -1px);
}
.bl-card--promax { background: linear-gradient(160deg, var(--paper-2) 60%, #EDE4FF 100%); }

.bl-current {
  position: absolute;
  top: -10px;
  right: 10px;
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  background: var(--riso-teal);
  color: #fff;
  border: 2px solid var(--ink-line);
  border-radius: 999px;
  padding: 1px 10px;
}
.bl-card-top { display: flex; align-items: center; gap: 8px; }
.bl-emoji { font-size: 24px; line-height: 1; }
.bl-card-name { font-size: 22px; letter-spacing: 0.02em; }
.bl-price { font-size: 26px; font-weight: 700; }
.bl-per { font-size: 12px; font-weight: 400; color: var(--newsprint-mute); }
.bl-credits {
  font-weight: 700;
  color: var(--credit-gold-deep);
  font-size: 14px;
}
.bl-perks { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-soft); }
.bl-perks li { margin-bottom: 2px; }

/* Cards stretch to the tallest in the row, and the price is pushed to the
   bottom. Without both, a pack WITH a bonus line is taller than one without,
   and the peso prices sit at different heights across the row — the row reads
   as crooked even though every card is individually fine. */
.bl-grid--packs { align-items: stretch; }
.bl-pack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  height: 100%;
  padding: 12px;
  border: var(--border-ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  font-family: var(--f-body);
  color: var(--ink);
}
.bl-pack:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--panel-shadow); }
.bl-pack.is-picked { box-shadow: var(--shadow-harder); background: var(--paper); }
.bl-pack-name { font-family: var(--f-head); font-weight: 700; font-size: 14px; }
.bl-pack-credits { font-size: 17px; font-weight: 700; color: var(--credit-gold-deep); }
.bl-pack-bonus {
  font-size: 11px;
  font-weight: 700;
  color: var(--success-ink);
}
/* margin-top:auto is what actually lines the prices up — it pins each price to
   the bottom of its (now equal-height) card. */
.bl-pack-price { font-size: 14px; margin-top: auto; padding-top: 4px; }

/* ── checkout ── */
.bl-summary {
  border: 2px dashed var(--ink-line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--paper-sunk);
  margin-bottom: 12px;
}
.bl-sum-row { display: flex; align-items: baseline; gap: 8px; padding: 2px 0; }
.bl-sum-promo { color: var(--success-ink); font-weight: 700; }

.bl-payto {
  border: var(--border-ink);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--paper-2);
  margin-bottom: 12px;
}
.bl-payto-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--newsprint-mute);
  text-transform: uppercase;
}
.bl-payto-acct { font-size: 15px; font-weight: 700; }
.bl-payto-num { font-size: 19px; font-weight: 700; letter-spacing: 0.04em; }

.bl-promo-input { text-transform: uppercase; letter-spacing: 0.06em; }
.bl-promo-btn { flex: 0 0 auto; }
.bl-promo-note { min-height: 16px; margin: -4px 0 8px; }
.bl-promo-note.is-ok { color: var(--success-ink); font-weight: 700; }
.bl-promo-note.is-err { color: var(--danger-ink); font-weight: 700; }

.bl-verify { margin-top: 6px; }

.bl-result {
  margin-top: 12px;
  border: var(--border-ink);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--paper-2);
}
.bl-result.is-ok { background: #E4F7F4; border-color: var(--success-ink); }
.bl-result.is-pending { background: #FFF6DF; border-color: var(--warning); }
.bl-result.is-err { background: #FFE9EE; border-color: var(--danger-ink); }

/* ── history ── */
.bl-hrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1.5px dashed var(--halftone);
}
.bl-hrow:last-child { border-bottom: 0; }
.bl-hrow-plan { font-weight: 700; font-size: 14px; text-transform: capitalize; }
.bl-hrow-ref { font-size: 11px; }

.bl-status {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 2px solid var(--ink-line);
  white-space: nowrap;
}
.bl-status--verified { background: var(--success); color: #fff; }
.bl-status--pending { background: var(--riso-yellow); color: var(--ink); }
.bl-status--rejected { background: var(--locked); color: var(--paper-2); }
