/*
 * Benchfa Panel: panel, login and public profile.
 * Font is inherited from the theme. Dark tokens are injected inline using the
 * dark-mode selector from Settings → پنل بنچفا.
 */

.bfp {
	--bfp-bg: #F6F5FA;
	--bfp-surface: #FFFFFF;
	--bfp-surface-2: #F1EFF8;
	--bfp-text: #17152A;
	--bfp-muted: #5B5770;
	--bfp-border: #E4E1EF;
	--bfp-brand: #623EDE;
	--bfp-brand-ink: #5634CF;
	--bfp-brand-soft: #EEE9FD;
	--bfp-danger: #C2323B;
	--bfp-success: #1F8A55;
	--bfp-warn-bg: #FFF4E0;
	--bfp-warn-text: #7A4B00;
	--bfp-radius: 12px;
	--bfp-radius-lg: 20px;
	--bfp-shadow: 0 1px 2px rgba(23, 21, 42, 0.06);

	direction: rtl;
	text-align: right;
	color: var(--bfp-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.8;
	max-width: 1180px;
	margin: 24px auto 48px;
	padding: 0 16px;
}
.bfp *,
.bfp *::before,
.bfp *::after {
	box-sizing: border-box;
}
.bfp [hidden] {
	display: none !important;
}
.bfp a {
	color: var(--bfp-brand-ink);
}
.bfp img {
	max-width: 100%;
}
.bfp .bfp-icon {
	flex: none;
}
.bfp :focus-visible {
	outline: 3px solid var(--bfp-brand);
	outline-offset: 2px;
	border-radius: 6px;
}

/* ---------- Typography ---------- */
.bfp .bfp-h2 {
	margin: 0 0 12px;
	font-size: 18px;
	line-height: 1.5;
	font-weight: 800;
	color: var(--bfp-text);
}
.bfp .bfp-h3 {
	margin: 20px 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--bfp-text);
}
.bfp .bfp-muted {
	margin: 0 0 14px;
	color: var(--bfp-muted);
}
.bfp .bfp-hint {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.7;
	color: var(--bfp-muted);
}
.bfp .bfp-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Buttons ---------- */
.bfp .bfp-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: var(--bfp-radius);
	background: none;
	color: var(--bfp-text);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.bfp .bfp-btn:disabled {
	opacity: 0.6;
	cursor: progress;
}
.bfp .bfp-btn--primary {
	background: var(--bfp-brand);
	color: #FFFFFF;
}
.bfp .bfp-btn--primary:hover {
	background: var(--bfp-brand-ink);
	color: #FFFFFF;
}
.bfp .bfp-btn--soft {
	background: var(--bfp-brand-soft);
	color: var(--bfp-brand-ink);
}
.bfp .bfp-btn--soft:hover {
	border-color: var(--bfp-brand);
}
.bfp .bfp-btn--ghost {
	border-color: var(--bfp-border);
	background: var(--bfp-surface);
	color: var(--bfp-text);
}
.bfp .bfp-btn--ghost:hover {
	border-color: var(--bfp-brand);
	color: var(--bfp-brand-ink);
}
.bfp .bfp-btn--danger {
	color: var(--bfp-danger);
}
.bfp .bfp-btn--danger:hover {
	border-color: var(--bfp-danger);
	color: var(--bfp-danger);
}
.bfp .bfp-btn--sm {
	min-height: 36px;
	padding: 0 12px;
	font-size: 13px;
}
.bfp .bfp-btn--block {
	width: 100%;
}
.bfp .bfp-btn--social {
	width: 100%;
	border-color: var(--bfp-border);
	background: var(--bfp-surface);
	color: var(--bfp-text);
}
.bfp .bfp-btn--social:hover {
	border-color: var(--bfp-brand);
}
.bfp .bfp-linkbtn {
	-webkit-appearance: none;
	appearance: none;
	padding: 0;
	border: 0;
	background: none;
	color: var(--bfp-brand-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	text-align: inherit;
}
.bfp .bfp-linkbtn:hover {
	text-decoration: underline;
}
.bfp .bfp-link-sm {
	font-size: 13px;
}

/* ---------- Alerts / badges / toast ---------- */
.bfp .bfp-alert {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: var(--bfp-radius);
	border: 1px solid transparent;
	font-size: 14px;
}
.bfp .bfp-alert--error {
	background: rgba(194, 50, 59, 0.08);
	border-color: rgba(194, 50, 59, 0.3);
	color: var(--bfp-danger);
}
.bfp .bfp-alert--success {
	background: rgba(31, 138, 85, 0.08);
	border-color: rgba(31, 138, 85, 0.3);
	color: var(--bfp-success);
}
.bfp .bfp-alert--warn {
	background: var(--bfp-warn-bg);
	color: var(--bfp-warn-text);
}
.bfp .bfp-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--bfp-surface-2);
	color: var(--bfp-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.8;
	white-space: nowrap;
}
.bfp .bfp-badge--ok {
	background: rgba(31, 138, 85, 0.1);
	color: var(--bfp-success);
}
.bfp .bfp-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 99999;
	max-width: min(92vw, 460px);
	padding: 12px 18px;
	border-radius: var(--bfp-radius);
	background: var(--bfp-text);
	color: var(--bfp-surface);
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	transform: translate(-50%, 20px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s, transform 0.2s;
}
.bfp .bfp-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}
.bfp .bfp-toast.is-error {
	background: var(--bfp-danger);
	color: #FFFFFF;
}

/* ---------- Hero (user color lives here) ---------- */
.bfp .bfp-hero {
	position: relative;
	margin-bottom: 20px;
	padding: 24px;
	border-radius: var(--bfp-radius-lg);
	background: var(--bfp-u-soft, var(--bfp-brand-soft));
	border: 1px solid var(--bfp-border);
	border-top: 6px solid var(--bfp-u, var(--bfp-brand));
}
.bfp .bfp-hero__id {
	display: flex;
	align-items: flex-start;
	gap: 18px;
}
.bfp .bfp-hero__avatar {
	flex: none;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	border: 3px solid var(--bfp-u, var(--bfp-brand));
	background: var(--bfp-surface);
	object-fit: cover;
}
.bfp .bfp-hero__text {
	flex: 1;
	min-width: 0;
}
.bfp .bfp-hero__name {
	margin: 4px 0 0;
	font-size: 26px;
	line-height: 1.4;
	font-weight: 800;
	color: var(--bfp-text);
}
.bfp .bfp-hero__handle {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--bfp-u-ink, var(--bfp-brand-ink));
	text-align: right;
}
.bfp .bfp-hero__bio {
	margin: 8px 0 0;
	max-width: 62ch;
	color: var(--bfp-text);
	white-space: pre-line;
}
.bfp .bfp-hero__meta {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--bfp-muted);
}
.bfp .bfp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* The rig strip: the account's headline specs */
.bfp .bfp-rig-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}
.bfp .bfp-spec {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	padding: 12px 14px;
	border-radius: var(--bfp-radius);
	background: var(--bfp-surface);
	border: 1px solid var(--bfp-border);
}
.bfp .bfp-spec__label {
	font-size: 12px;
	font-weight: 800;
	color: var(--bfp-u-ink, var(--bfp-brand-ink));
}
.bfp .bfp-spec__value {
	overflow: hidden;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.5;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bfp .bfp-spec.is-empty {
	background: transparent;
	border-style: dashed;
	border-color: var(--bfp-u, var(--bfp-brand));
}
.bfp .bfp-spec__add {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 28px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--bfp-u-ink, var(--bfp-brand-ink));
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

/* ---------- Layout + tabs ---------- */
.bfp .bfp-layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}
.bfp .bfp-tabs {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px;
	border-radius: var(--bfp-radius-lg);
	background: var(--bfp-surface);
	border: 1px solid var(--bfp-border);
}
.bfp .bfp-tab {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--bfp-muted);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	text-align: right;
	cursor: pointer;
}
.bfp .bfp-tab:hover {
	background: var(--bfp-surface-2);
	color: var(--bfp-text);
}
.bfp .bfp-tab[aria-selected="true"] {
	background: var(--bfp-brand-soft);
	color: var(--bfp-brand-ink);
}
.bfp .bfp-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.bfp .bfp-section:focus-visible {
	outline-offset: 6px;
}

/* ---------- Cards ---------- */
.bfp .bfp-card {
	margin: 0;
	padding: 20px;
	border-radius: var(--bfp-radius-lg);
	background: var(--bfp-surface);
	border: 1px solid var(--bfp-border);
}
.bfp .bfp-card--accent {
	border-color: var(--bfp-brand);
	background: var(--bfp-brand-soft);
}
.bfp .bfp-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 12px;
}
.bfp .bfp-card__head .bfp-h2 {
	margin: 0;
}
.bfp .bfp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.bfp .bfp-card--wide {
	grid-column: 1 / -1;
}
.bfp .bfp-empty {
	padding: 16px;
	border-radius: var(--bfp-radius);
	background: var(--bfp-surface-2);
}
.bfp .bfp-empty p {
	margin: 0 0 12px;
	color: var(--bfp-muted);
}

/* ---------- Home widgets ---------- */
.bfp .bfp-progress {
	height: 8px;
	margin-bottom: 14px;
	border-radius: 999px;
	background: var(--bfp-surface-2);
	overflow: hidden;
}
.bfp .bfp-progress span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--bfp-brand);
}
.bfp .bfp-checklist {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bfp .bfp-checklist li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
}
.bfp .bfp-checklist__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid var(--bfp-border);
}
.bfp .bfp-checklist li.is-done {
	color: var(--bfp-muted);
}
.bfp .bfp-checklist li.is-done .bfp-checklist__mark {
	border-color: var(--bfp-success);
	background: var(--bfp-success);
	color: #FFFFFF;
}
.bfp .bfp-feed {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bfp .bfp-feed__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: var(--bfp-radius);
	color: var(--bfp-text);
	text-decoration: none;
}
.bfp .bfp-feed__item:hover {
	background: var(--bfp-surface-2);
}
.bfp .bfp-feed__thumb {
	flex: none;
	width: 72px;
	height: 54px;
	border-radius: 8px;
	object-fit: cover;
	background: var(--bfp-surface-2);
}
.bfp .bfp-feed__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.bfp .bfp-feed__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-weight: 700;
	line-height: 1.6;
}
.bfp .bfp-feed__meta {
	font-size: 12px;
	color: var(--bfp-muted);
}
.bfp .bfp-minigames {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bfp .bfp-minigames li {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 12px;
	align-items: center;
	padding: 6px 0;
}
.bfp .bfp-minigames img {
	grid-row: 1 / 3;
	width: 92px;
	height: 35px;
	border-radius: 6px;
	object-fit: cover;
	background: var(--bfp-surface-2);
}
.bfp .bfp-minigames__name {
	overflow: hidden;
	font-weight: 700;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bfp .bfp-minigames__time {
	font-size: 12px;
	color: var(--bfp-muted);
}
.bfp .bfp-mini-comments {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bfp .bfp-mini-comments li {
	padding: 8px 0;
	border-bottom: 1px solid var(--bfp-border);
}
.bfp .bfp-mini-comments li:last-child {
	border-bottom: 0;
}
.bfp .bfp-mini-comments a {
	font-weight: 700;
	text-decoration: none;
}
.bfp .bfp-mini-comments p {
	margin: 2px 0 0;
	font-size: 14px;
	color: var(--bfp-muted);
}

/* ---------- Forms ---------- */
.bfp .bfp-form .bfp-h2 + .bfp-muted {
	margin-top: -4px;
}
.bfp .bfp-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}
.bfp .bfp-row--rig {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.bfp .bfp-field {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	min-width: 0;
}
.bfp .bfp-field > label,
.bfp .bfp-field legend,
.bfp .bfp-field__row > label {
	display: block;
	margin-bottom: 6px;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--bfp-text);
}
.bfp .bfp-field__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.bfp .bfp-input {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--bfp-border);
	border-radius: var(--bfp-radius);
	background: var(--bfp-surface);
	color: var(--bfp-text);
	font: inherit;
	font-size: 15px;
	line-height: 1.6;
	box-shadow: none;
}
.bfp textarea.bfp-input {
	min-height: 96px;
	resize: vertical;
}
.bfp select.bfp-input {
	padding-inline-start: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235B5770' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 14px center;
}
.bfp .bfp-input::placeholder {
	color: var(--bfp-muted);
	opacity: 0.7;
}
.bfp .bfp-input:focus {
	border-color: var(--bfp-brand);
	outline: 3px solid var(--bfp-brand-soft);
	outline-offset: 0;
}
.bfp .bfp-affix {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--bfp-border);
	border-radius: var(--bfp-radius);
	background: var(--bfp-surface);
	overflow: hidden;
}
.bfp .bfp-affix:focus-within {
	border-color: var(--bfp-brand);
	outline: 3px solid var(--bfp-brand-soft);
}
.bfp .bfp-affix__pre {
	display: flex;
	align-items: center;
	padding: 0 12px;
	background: var(--bfp-surface-2);
	color: var(--bfp-muted);
	font-size: 13px;
	white-space: nowrap;
}
.bfp .bfp-affix .bfp-input {
	border: 0;
	border-radius: 0;
	outline: none;
}
.bfp .bfp-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 14px;
	cursor: pointer;
}
.bfp .bfp-check input {
	width: 18px;
	height: 18px;
	margin: 4px 0 0;
	flex: none;
	accent-color: var(--bfp-brand);
}
.bfp .bfp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

/* Color swatches */
.bfp .bfp-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 16px;
}
.bfp .bfp-swatch {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}
.bfp .bfp-swatch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.bfp .bfp-swatch__dot {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--bfp-u);
	transition: box-shadow 0.12s;
}
.bfp .bfp-swatch input:checked + .bfp-swatch__dot {
	box-shadow: 0 0 0 3px var(--bfp-surface), 0 0 0 5px var(--bfp-u);
}
.bfp .bfp-swatch input:focus-visible + .bfp-swatch__dot {
	outline: 3px solid var(--bfp-brand);
	outline-offset: 2px;
}

/* Comment preview (same look as the real comment bubble) */
.bfp .bfp-preview {
	max-width: 520px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--bfp-u-soft);
	border-inline-start: 3px solid var(--bfp-u);
	transition: background-color 0.2s, border-color 0.2s;
}
.bfp .bfp-preview__head {
	display: flex;
	align-items: center;
	gap: 10px;
}
.bfp .bfp-preview__head img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
}
.bfp .bfp-preview__name {
	font-weight: 800;
	color: var(--bfp-u-ink);
}
.bfp .bfp-preview__time {
	font-size: 12px;
	color: var(--bfp-muted);
}
.bfp .bfp-preview__text {
	margin: 8px 0 0;
	font-size: 14px;
}

/* Avatar */
.bfp .bfp-avatar-edit {
	display: flex;
	align-items: center;
	gap: 16px;
}
.bfp .bfp-avatar-edit__img {
	flex: none;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
}
.bfp .bfp-avatar-edit__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.bfp .bfp-avatar-edit__actions .bfp-hint {
	flex-basis: 100%;
	margin: 0;
}
.bfp .bfp-file {
	position: relative;
	overflow: hidden;
}
.bfp .bfp-file input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}
.bfp .bfp-file:focus-within {
	outline: 3px solid var(--bfp-brand);
	outline-offset: 2px;
}

/* ---------- Steam ---------- */
.bfp .bfp-steam-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
}
.bfp .bfp-steam-head__avatar {
	width: 64px;
	height: 64px;
	border-radius: 12px;
}
.bfp .bfp-steam-head__text {
	flex: 1;
	min-width: 160px;
}
.bfp .bfp-steam-head__text .bfp-h2 {
	margin: 0 0 4px;
	text-align: right;
}
.bfp .bfp-steam-head__actions {
	display: flex;
	gap: 8px;
}
.bfp .bfp-steam-verify {
	margin-top: 12px;
}
.bfp .bfp-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 16px 0 0;
}
.bfp .bfp-stats div {
	padding: 12px 14px;
	border-radius: var(--bfp-radius);
	background: var(--bfp-surface-2);
}
.bfp .bfp-stats dt {
	font-size: 12px;
	color: var(--bfp-muted);
}
.bfp .bfp-stats dd {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
}
.bfp .bfp-games {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bfp .bfp-game {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.bfp .bfp-game img {
	width: 100%;
	height: auto;
	aspect-ratio: 184 / 69;
	border-radius: 8px;
	object-fit: cover;
	background: var(--bfp-surface-2);
}
.bfp .bfp-game__name {
	margin-top: 6px;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bfp .bfp-game__time {
	font-size: 12px;
	color: var(--bfp-muted);
}

/* ---------- Tags ---------- */
.bfp .bfp-switch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.bfp .bfp-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.bfp .bfp-switch__track {
	position: relative;
	width: 44px;
	height: 26px;
	border-radius: 999px;
	background: var(--bfp-border);
	transition: background-color 0.15s;
}
.bfp .bfp-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	right: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #FFFFFF;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	transition: transform 0.15s;
}
.bfp .bfp-switch input:checked + .bfp-switch__track {
	background: var(--bfp-brand);
}
.bfp .bfp-switch input:checked + .bfp-switch__track::after {
	transform: translateX(-18px);
}
.bfp .bfp-switch input:focus-visible + .bfp-switch__track {
	outline: 3px solid var(--bfp-brand);
	outline-offset: 2px;
}
.bfp .bfp-tagchips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.bfp .bfp-tagchips .bfp-muted {
	margin: 0;
}
.bfp .bfp-tagchip {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding-inline-start: 12px;
	border-radius: 999px;
	background: var(--bfp-brand-soft);
	font-size: 14px;
	font-weight: 700;
}
.bfp .bfp-tagchip a {
	color: var(--bfp-brand-ink);
	text-decoration: none;
}
.bfp .bfp-tagchip button {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--bfp-brand-ink);
	cursor: pointer;
}
.bfp .bfp-tagchip button:hover {
	background: rgba(98, 62, 222, 0.14);
}
.bfp .bfp-search {
	position: relative;
}
.bfp .bfp-search .bfp-icon {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	color: var(--bfp-muted);
	pointer-events: none;
}
.bfp .bfp-search .bfp-input {
	padding-right: 42px;
}
.bfp .bfp-tagrows {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}
.bfp .bfp-tagrow {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--bfp-border);
}
.bfp .bfp-tagrow:last-child {
	border-bottom: 0;
}
.bfp .bfp-tagrow__name {
	flex: 1;
	font-weight: 700;
}
.bfp .bfp-tagrow__count {
	font-size: 13px;
	color: var(--bfp-muted);
}
.bfp .bfp-tagrows .bfp-empty-line {
	padding: 8px 0;
	color: var(--bfp-muted);
}

/* ---------- Activity ---------- */
.bfp .bfp-comments {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bfp .bfp-comments__item {
	padding: 12px 0;
	border-bottom: 1px solid var(--bfp-border);
}
.bfp .bfp-comments__item:last-child {
	border-bottom: 0;
}
.bfp .bfp-comments__head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.bfp .bfp-comments__head a {
	font-weight: 700;
	text-decoration: none;
}
.bfp .bfp-comments__item p {
	margin: 4px 0 0;
	font-size: 14px;
}
.bfp .bfp-comments__time {
	font-size: 12px;
	color: var(--bfp-muted);
}

/* ---------- Account ---------- */
.bfp .bfp-methods {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bfp .bfp-methods li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--bfp-border);
}
.bfp .bfp-methods li:last-child {
	border-bottom: 0;
}
.bfp .bfp-methods__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--bfp-surface-2);
	color: var(--bfp-muted);
}
.bfp .bfp-methods__text {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	font-size: 14px;
}
.bfp .bfp-methods__text span {
	overflow: hidden;
	color: var(--bfp-muted);
	text-align: right;
	text-overflow: ellipsis;
}

/* ---------- Login / register ---------- */
.bfp.bfp-auth {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
	gap: 32px;
	align-items: center;
	max-width: 980px;
	margin-top: 48px;
}
.bfp .bfp-auth__site {
	margin: 0;
	font-size: 14px;
	font-weight: 800;
	color: var(--bfp-brand-ink);
}
.bfp .bfp-auth__title {
	margin: 4px 0 20px;
	font-size: 30px;
	line-height: 1.4;
	font-weight: 800;
	color: var(--bfp-text);
}
.bfp .bfp-auth__perks {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bfp .bfp-auth__perks li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
	color: var(--bfp-muted);
}
.bfp .bfp-auth__perks .bfp-icon {
	margin-top: 5px;
	color: var(--bfp-brand);
}
.bfp .bfp-auth__card {
	padding: 24px;
	border-radius: var(--bfp-radius-lg);
	background: var(--bfp-surface);
	border: 1px solid var(--bfp-border);
	border-top: 6px solid var(--bfp-brand);
	box-shadow: var(--bfp-shadow);
}
.bfp .bfp-auth__switch {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	margin-bottom: 20px;
	padding: 4px;
	border-radius: var(--bfp-radius);
	background: var(--bfp-surface-2);
}
.bfp .bfp-auth__switch a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	border-radius: 9px;
	color: var(--bfp-muted);
	font-weight: 700;
	text-decoration: none;
}
.bfp .bfp-auth__switch a.is-active {
	background: var(--bfp-surface);
	color: var(--bfp-brand-ink);
	box-shadow: var(--bfp-shadow);
}
.bfp .bfp-auth__social {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.bfp .bfp-auth__social .bfp-hint {
	margin: 0;
	text-align: center;
}
.bfp .bfp-auth__or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 0;
	font-size: 13px;
	color: var(--bfp-muted);
}
.bfp .bfp-auth__or::before,
.bfp .bfp-auth__or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--bfp-border);
}
.bfp .bfp-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Public profile ---------- */
.bfp .bfp-profile__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}
.bfp .bfp-specs {
	margin: 0;
}
.bfp .bfp-specs div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--bfp-border);
}
.bfp .bfp-specs div:last-child {
	border-bottom: 0;
}
.bfp .bfp-specs dt {
	color: var(--bfp-muted);
}
.bfp .bfp-specs dd {
	margin: 0;
	font-weight: 700;
	text-align: left;
}
.bfp.bfp-profile .bfp-comments__item {
	margin-bottom: 8px;
	padding: 12px 14px;
	border: 0;
	border-inline-start: 3px solid var(--bfp-u);
	border-radius: 12px;
	background: var(--bfp-u-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.bfp .bfp-layout {
		grid-template-columns: minmax(0, 1fr);
	}
	.bfp .bfp-tabs {
		position: static;
		flex-direction: row;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.bfp .bfp-tabs::-webkit-scrollbar {
		display: none;
	}
	.bfp .bfp-tab {
		width: auto;
		flex: none;
		white-space: nowrap;
	}
	.bfp .bfp-row--rig {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.bfp.bfp-auth {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 24px;
	}
	.bfp .bfp-auth__intro {
		display: none;
	}
}
@media (max-width: 640px) {
	.bfp {
		font-size: 14px;
	}
	.bfp .bfp-hero {
		padding: 18px;
	}
	.bfp .bfp-hero__id {
		flex-wrap: wrap;
	}
	.bfp .bfp-hero__avatar {
		width: 72px;
		height: 72px;
	}
	.bfp .bfp-hero__name {
		font-size: 21px;
	}
	.bfp .bfp-hero__actions {
		flex-basis: 100%;
	}
	.bfp .bfp-rig-strip {
		grid-template-columns: minmax(0, 1fr);
		gap: 6px;
		margin-top: 16px;
	}
	.bfp .bfp-spec {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 8px 12px;
	}
	.bfp .bfp-spec__value {
		font-size: 15px;
	}
	.bfp .bfp-grid,
	.bfp .bfp-feed,
	.bfp .bfp-row,
	.bfp .bfp-row--rig,
	.bfp .bfp-profile__grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.bfp .bfp-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.bfp .bfp-games {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.bfp .bfp-card {
		padding: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bfp *,
	.bfp *::before,
	.bfp *::after {
		transition: none !important;
	}
}
