/* Badges + cook levels — tokens from home-v2.css */
.bd-icon { display: block; flex: 0 0 auto; }

/* profile head row */
.bd-profile-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 4px; }
.bd-level-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; text-decoration: none; color: #fff; background: #97a3ad; }
.bd-level-pill svg { width: 15px; height: 15px; }
.bd-level-pill:hover { color: #fff; filter: brightness(1.08); }
.bd-level-1 { background: #97a3ad; }
.bd-level-2 { background: #27ae60; }
.bd-level-3 { background: #2980b9; }
.bd-level-4 { background: #8e44ad; }
.bd-level-5 { background: linear-gradient(135deg, #f1c40f, #e67e22); }
.bd-strip { display: inline-flex; align-items: center; text-decoration: none; }
.bd-strip-item { margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; transition: transform .15s; }
.bd-strip-item:first-child { margin-left: 0; }
.bd-strip:hover .bd-strip-item { transform: translateY(-1px); }
.bd-strip-more { margin-left: 6px; font-size: 12px; font-weight: 800; color: #6b7680; }
.bd-see-all { font-size: 12.5px; font-weight: 700; color: #e74c3c; text-decoration: none; }
.bd-see-all:hover { text-decoration: underline; }

/* badges page */
.bd-page { margin-top: 18px; color: #1f2f3d; }
.bd-level-card { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 260px); gap: 22px; align-items: center; padding: 20px; background: #fff; border: 1px solid #eeece8; border-radius: 16px; box-shadow: 0 1px 3px rgba(45,62,79,.06); }
.bd-level-badge { width: 96px; height: 96px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; box-shadow: 0 6px 18px rgba(31,47,61,.15); }
.bd-level-badge svg { width: 36px; height: 36px; }
.bd-level-badge span { font-size: 12px; font-weight: 800; }
.bd-level-body h2 { margin: 0; font-size: 24px; font-weight: 800; }
.bd-level-points { margin: 2px 0 10px; font-size: 13.5px; color: #6b7680; }
.bd-progress { height: 10px; border-radius: 999px; background: #eeece8; overflow: hidden; }
.bd-progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #e74c3c, #f39c12); }
.bd-progress-sm { height: 6px; width: 100%; margin-top: 4px; }
.bd-level-next { margin: 8px 0 0; font-size: 13px; color: #6b7680; }
.bd-level-how { padding: 12px 14px; border-radius: 12px; background: #faf9f7; font-size: 13px; }
.bd-level-how strong { display: block; margin-bottom: 6px; font-size: 13px; }
.bd-level-how ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; color: #34495e; }
.bd-level-how li { display: flex; justify-content: space-between; gap: 8px; }
.bd-level-how b { color: #27ae60; white-space: nowrap; }

.bd-section-title { margin: 26px 0 12px; font-size: 17px; font-weight: 800; }
.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.bd-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 14px 16px; background: #fff; border: 1px solid #eeece8; border-radius: 14px; }
.bd-card strong { font-size: 14px; font-weight: 800; }
.bd-card-desc { font-size: 12.5px; line-height: 1.4; color: #6b7680; }
.bd-card-date { font-size: 11.5px; color: #97a3ad; font-weight: 600; }
.bd-card.is-earned { box-shadow: 0 1px 3px rgba(45,62,79,.06); }
.bd-card.is-locked { background: #faf9f7; }
.bd-card.is-locked strong { color: #6b7680; }
.bd-card-progress-row { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 4px; }
.bd-card-progress-row .bd-progress-sm { flex: 1 1 auto; width: auto; margin-top: 0; }
.bd-card-count { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.bd-hint { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #eafaf1; color: #1e8449; font-size: 13.5px; font-weight: 600; }

/* "New badge!" toast */
.bd-toast { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 10002; display: flex; align-items: center; gap: 12px; max-width: min(360px, calc(100% - 32px)); padding: 12px 40px 12px 12px; border-radius: 16px; background: #1f2f3d; color: #fff; text-decoration: none; box-shadow: 0 12px 30px rgba(31,47,61,.3); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .25s, transform .25s; box-sizing: border-box; }
.bd-toast.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.bd-toast:hover { color: #fff; }
.bd-toast-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bd-toast-text strong { font-size: 14.5px; font-weight: 800; }
.bd-toast-text span { font-size: 12.5px; color: #d5dde3; }
.bd-toast-close { position: absolute; top: 6px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: #d5dde3; font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.bd-toast-close:hover { background: rgba(255,255,255,.12); color: #fff; }

@media (max-width: 760px) {
	.bd-level-card { grid-template-columns: auto minmax(0, 1fr); }
	.bd-level-how { grid-column: 1 / -1; }
	.bd-level-badge { width: 76px; height: 76px; }
	.bd-toast { left: 16px; right: 16px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
	.bd-toast, .bd-strip-item { transition: none; }
}
