/* ── BATTLE PASS ─────────────────────────────────────────────────────────────── */
.bp-card {
  background:
    radial-gradient(90% 60% at 50% -20%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 65%),
    var(--surface-1);
  border: 1px solid color-mix(in srgb, var(--gold) 18%, var(--border));
  border-radius: var(--radius-lg, 17px); padding: 18px 20px; margin-bottom: 26px;
  box-shadow: var(--shadow-card);
}
.bp-inactive { color: var(--text-2); font-size: .95rem; text-align: center; padding: 26px; }

.bp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bp-head-l { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bp-badge { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: .04em; color: var(--gold); }
.bp-season { font-size: .82rem; color: var(--text-2); }

.bp-premium-on { font-size: .82rem; font-weight: 700; color: var(--gold); }
.bp-premium-buy {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: linear-gradient(120deg, #b8860b, var(--gold)); color: #1a1500;
  border: none; border-radius: 22px; padding: 8px 16px; font-weight: 800; font-size: .82rem;
  box-shadow: 0 3px 12px rgba(212,160,23,.35);
}
.bp-premium-buy:hover { filter: brightness(1.06); transform: translateY(-1px); }
.bp-premium-buy .coin-icon { width: 15px; height: 15px; }

/* Progress bar */
.bp-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.bp-level-chip {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; line-height: 1; color: var(--text-1);
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 16%, var(--surface-3)), var(--surface-3));
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--border-hi));
  border-radius: 12px; padding: 6px 12px;
  box-shadow: 0 0 16px -6px var(--gold), inset 0 1px 0 rgba(255,255,255,.08);
}
.bp-level-chip small { font-size: .9rem; color: var(--text-3); }
.bp-bar { flex: 1; min-width: 160px; height: 12px; background: var(--surface-3); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.bp-bar-fill {
  position: relative; height: 100%; border-radius: 99px; overflow: hidden;
  background: linear-gradient(90deg, var(--gold), #ffd86b);
  transition: width .5s var(--ease-out);
  box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 55%, transparent);
}
/* Animated stripes drifting along the gold fill — battle-pass energy.
   45° pattern period 12px → horizontal loop 12·√2 ≈ 17px, so the translate is
   seamless; the pseudo starts 17px left so the shift never exposes a gap. */
.bp-bar-fill::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -17px; right: 0;
  background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(255,255,255,.16) 8px 12px);
  animation: bpStripes 1.1s linear infinite;
}
@keyframes bpStripes { to { transform: translateX(17px); } }
.bp-progress-meta { font-size: .8rem; color: var(--text-2); white-space: nowrap; }

/* Lanes (student) */
.bp-lane { margin-top: 12px; }
.bp-lane-title { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.bp-lane-free { color: var(--text-2); }
.bp-lane-prem { color: var(--gold); }
.bp-lane-rail { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }

/* Slot card (student). Wider than tall so wide cosmetics (profile cards, titles,
   mottos) display comfortably in the landscape preview area. */
.bp-slot {
  flex: 0 0 156px; width: 156px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md, 13px); padding: 10px 10px; display: flex; flex-direction: column;
  align-items: center; gap: 6px; text-align: center;
  transition: transform .22s var(--ease-out), border-color .2s, box-shadow .25s var(--ease-out), opacity .2s;
}
.bp-slot:hover { transform: translateY(-3px); }
.bp-slot.is-locked    { opacity: .62; }
.bp-slot.is-locked:hover { opacity: .8; }
/* Claimable: breathing green glow — the eye goes straight to what's redeemable */
.bp-slot.is-claimable { border-color: var(--green); animation: bpClaimable 2s ease-in-out infinite; }
@keyframes bpClaimable {
  0%, 100% { box-shadow: 0 0 0 1px var(--green-dim), 0 0 12px -4px var(--green); }
  50%      { box-shadow: 0 0 0 1px var(--green-dim), 0 0 24px -2px var(--green); }
}
.bp-slot.is-claimed   { border-color: var(--border-hi); }
.bp-slot.is-premlock {
  border-style: dashed; border-color: var(--gold); opacity: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 7%, transparent), transparent 55%), var(--surface-2);
}
.bp-slot-lvl  { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: .04em; color: var(--text-3); }
.bp-slot-prev { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; }
.bp-slot-name { font-size: .72rem; color: var(--text-1); line-height: 1.2; height: 2.4em; overflow: hidden; max-width: 100%; overflow-wrap: anywhere; }
.bp-slot-foot { margin-top: 2px; min-height: 24px; display: flex; align-items: center; }

.bp-slot-claim {
  cursor: pointer; color: #04210f; border: none; border-radius: 16px;
  background: linear-gradient(135deg, #4ef08a, var(--green));
  box-shadow: 0 2px 10px rgba(46,224,106,.35), inset 0 1px 0 rgba(255,255,255,.25);
  padding: 4px 12px; font-weight: 800; font-size: .72rem;
  transition: transform .15s var(--ease-out), box-shadow .2s, filter .15s;
}
.bp-slot-claim:hover  { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(46,224,106,.45), inset 0 1px 0 rgba(255,255,255,.25); }
.bp-slot-claimed { font-size: .72rem; font-weight: 700; color: var(--green); }
.bp-slot-lock    { font-size: .72rem; color: var(--text-3); font-weight: 600; }
.bp-slot-empty   { font-size: 1rem; color: var(--text-3); }

/* Reward previews (coins / attribute / none) */
.bp-prev-coins { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; color: var(--gold); font-size: 1rem; }
.bp-prev-coins .coin-icon { width: 18px; height: 18px; }
.bp-prev-attr  { font-weight: 800; color: #8b5cf6; font-size: 1.1rem; }
.bp-prev-none  { color: var(--text-3); font-size: 1.4rem; }

/* Preview content sizing. The STUDENT box is roomy (~136px wide) so cosmetics show
   in full; content is only capped to the card width so it can't spill onto a
   neighbour — nothing is clipped. The ADMIN thumbnail is small, so only the
   genuinely wide preview (profile card) is scaled down to fit. */
.bp-slot-prev > *, .bp-admin-prev > * { max-width: 100%; }
.bp-slot-prev .profile-avatar, .bp-admin-prev .profile-avatar { width: 38px; height: 38px; font-size: 1.4rem; }
.bp-slot-prev .profile-avatar-wrap[class*="frame-"],
.bp-admin-prev .profile-avatar-wrap[class*="frame-"] { padding: 2px; }
/* Only the STANDALONE avatar preview is resized (direct child); never the small
   avatar inside the profile-frame card, which must keep its skeleton proportions. */
.bp-slot-prev > .shop-prev-ava, .bp-admin-prev > .shop-prev-ava { width: 40px; height: 40px; font-size: 1.4rem; }
.bp-slot-prev .shop-prev-pcard { padding: 6px 10px; }
.bp-slot-prev .shop-prev-title { font-size: .66rem; padding: 3px 9px; }
.bp-slot-prev .shop-prev-motto { font-size: .64rem; }
/* Admin thumbnail (~58px wide): the profile-frame card keeps its natural rectangular
   shape and is just scaled down to fit; coins/attribute shrink, long text clamps. */
.bp-admin-prev .shop-prev-pcard { max-width: none; transform: scale(.5); }
.bp-admin-prev .shop-prev-title { font-size: .56rem; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-admin-prev .shop-prev-motto { font-size: .54rem; line-height: 1.15; max-height: 100%; overflow: hidden; }
.bp-admin-prev .bp-prev-coins { font-size: .82rem; }
.bp-admin-prev .bp-prev-coins .coin-icon { width: 14px; height: 14px; }
.bp-admin-prev .bp-prev-attr { font-size: .95rem; }

/* ── Teacher config ── */
.bp-admin-count { font-size: .78rem; color: var(--text-2); }
.bp-admin-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bp-admin-field { display: flex; flex-direction: column; gap: 4px; font-size: .76rem; color: var(--text-2); }
.bp-admin-field input { width: 130px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; color: var(--text-1); font-size: .9rem; }

.bp-curve-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.bp-curve-help { font-size: .76rem; color: var(--text-2); margin: 0 0 8px; }
.bp-curve-input { width: 100%; box-sizing: border-box; background: var(--surface-1); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text-1); font-family: monospace; font-size: .82rem; resize: vertical; }
.bp-curve-actions { margin-top: 8px; }

/* minmax(0,1fr) (not bare 1fr = minmax(auto,1fr)) + min-width:0 down the chain
   so a long reward name truncates with the ellipsis instead of stretching the
   column and blowing out the card width. */
.bp-admin-lanes { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
@media (max-width: 720px) { .bp-admin-lanes { grid-template-columns: minmax(0,1fr); } }
.bp-admin-lane { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bp-admin-slot {
  display: flex; align-items: center; gap: 10px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; min-width: 0;
}
.bp-admin-slot.is-empty { border-style: dashed; }
.bp-admin-lvl  { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; color: var(--text-3); width: 38px; flex-shrink: 0; }
.bp-admin-prev { width: 80px; height: 46px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.bp-admin-name { flex: 1; min-width: 0; font-size: .82rem; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-admin-acts { display: flex; gap: 6px; flex-shrink: 0; }
.bp-admin-edit { cursor: pointer; background: var(--surface-3); border: 1px solid var(--border-hi); color: var(--text-1); border-radius: 8px; padding: 5px 12px; font-size: .76rem; font-weight: 700; }
.bp-admin-edit:hover { border-color: var(--gold); }
.bp-admin-clear { cursor: pointer; background: transparent; border: 1px solid var(--border); color: var(--text-3); border-radius: 8px; padding: 5px 9px; font-size: .76rem; }
.bp-admin-clear:hover { color: var(--red); border-color: var(--red); }

/* Reward picker modal */
.bp-type-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.bp-type-tab { flex: 1; cursor: pointer; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); border-radius: 10px; padding: 9px 6px; font-size: .82rem; font-weight: 700; }
.bp-type-tab.active { border-color: var(--gold); color: var(--text-1); background: var(--surface-3); }
.bp-pick-field { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; color: var(--text-2); }
.bp-pick-select, .bp-pick-field input { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; color: var(--text-1); font-size: .9rem; }
.bp-pick-help { font-size: .76rem; color: var(--text-3); margin: 10px 0 0; }
.bp-pick-actions { display: flex; gap: 10px; margin-top: 18px; }

/* Item picker filters (kind + search) */
.bp-item-filters { display: flex; gap: 8px; margin-bottom: 10px; }
.bp-item-filters #bpItemKind { flex: 0 0 auto; min-width: 150px; }
.bp-pick-input { flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; color: var(--text-1); font-size: .9rem; }
.bp-pick-list { width: 100%; }
.bp-item-count { font-weight: 600; color: var(--text-3); font-size: .72rem; margin-left: 4px; }

/* Student-simulator controls (teacher in "Simular estudiante") */
.bp-preview-controls { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.bp-prev-ctrl { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--text-2); }
.bp-prev-ctrl input[type="range"] { width: 200px; accent-color: var(--gold); }
.bp-prev-ctrl strong { color: var(--gold); min-width: 20px; }
.bp-prev-check { cursor: pointer; }
.bp-prev-check input { accent-color: var(--gold); }

/* Inert "claim" badge inside the teacher preview */
.bp-slot-claim.is-preview { cursor: default; background: var(--green-dim); color: var(--green); border: 1px solid var(--green); }
.shop-collection-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shop-collection-price { display: flex; flex-direction: column; gap: 1px; }
.shop-collection-save { font-size: .68rem; font-weight: 700; color: #2e9e5b; }
[data-theme="dark"] .shop-collection-save { color: #4bd07f; }
.shop-collection-complete { font-size: .82rem; font-weight: 700; color: var(--gold); text-align: center; }
.shop-collection-mgmt-icon { font-size: 2rem; }

