/*
 * Account access: Вход, Регистрация, Забравена парола, Провери пощата си,
 * Нова парола, Връзката не важи. Loaded only on /my-account/ (inc/account.php).
 * Design: the „Профил: вход, регистрация, нова парола“ row of the homepage
 * restyle canvas, 2026-11-14.
 */

:root {
	--bx-danger-bg: #FBE9E9;
}

:root[data-bc-theme="dark"] {
	--bx-danger-bg: #2E1717;
}

/* The page content is the WooCommerce wrapper: no extra spacing around it. */
.bx-acc-main .wp-block-post-content > .woocommerce {
	margin: 0;
	max-width: none;
}

.bx-acc-main .wp-block-post-content > * {
	margin-block: 0;
}

/* ---------- Section and grid ---------- */

.bx-acc {
	padding-block: var(--bx-sec-first) var(--bx-sec);
}

.bx-acc__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: stretch;
	max-width: 1040px;
	margin-inline: auto;
}

.bx-acc__card,
.bx-acc__form {
	display: grid;
	gap: 22px;
	align-content: start;
}

.bx-acc__card {
	background: var(--bx-card);
	border-radius: var(--bx-r-lg);
	box-shadow: var(--bx-shadow);
	padding: 32px;
}

/* Undo the pre-restyle account rules in style.css (beige box, 34rem width,
   !important) and WooCommerce's own form border. */
.woocommerce-account .bx-acc .bx-acc__form,
.woocommerce .bx-acc form.bx-acc__form {
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none;
	max-width: none;
	text-align: start;
}

.woocommerce-account main.bx-acc-main {
	padding-block-end: 0;
}

/* ---------- Tabs: Вход | Регистрация ---------- */

.bx-acc__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: -32px -32px 4px;
	box-shadow: inset 0 -1px 0 var(--bx-line);
}

.bx-acc__tabs a {
	height: 64px;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 16px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--bx-muted);
}

.bx-acc__tabs a.is-on {
	color: var(--bx-ink);
	box-shadow: inset 0 -3px 0 var(--bx-orange);
}

@media (hover: hover) {
	.bx-acc__tabs a:not(.is-on):hover {
		color: var(--bx-ink);
		box-shadow: inset 0 -3px 0 var(--bx-line2);
	}
}

/* ---------- Text ---------- */

.bx-acc__h,
.bx-acc__side h2 {
	margin: 0;
	font-weight: 900;
	font-size: 34px;
	line-height: 1;
}

.bx-acc__hd {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px 20px;
}

.bx-acc__small {
	font-size: 16px;
	color: var(--bx-muted);
	overflow-wrap: anywhere;
}

.bx-acc__note {
	margin: 0;
	font-size: 16px;
	line-height: 1.45;
	color: var(--bx-muted);
}

.bx-acc__note--lg {
	font-size: 18px;
}

.bx-acc__note strong {
	color: var(--bx-ink);
}

.bx-acc__lnk {
	font-weight: 800;
	font-size: 17px;
	color: var(--bx-copper);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.bx-acc__note .bx-acc__lnk,
.bx-acc__msg .bx-acc__lnk {
	font-size: inherit;
}

.bx-acc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
	font-size: 18px;
	line-height: 1.35;
}

.bx-acc__list li {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 10px;
}

.bx-acc__list svg {
	margin-top: 3px;
	color: var(--bx-copper);
}

.bx-acc__rule {
	border: 0;
	border-top: 1px solid var(--bx-line);
	margin: 0;
}

.bx-acc__acts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.bx-acc__acts .bx-b {
	display: inline-flex;
}

.bx-acc__acts button.wp-block-button__link {
	font-family: var(--bx-sans);
}

/* ---------- Fields ---------- */

.bx-acc__fld {
	display: grid;
	gap: 8px;
}

.bx-acc__fld label {
	font-weight: 800;
	font-size: 16px;
	letter-spacing: 0.02em;
}

.bx-acc__inp {
	width: 100%;
	min-height: 52px;
	padding: 0 16px;
	border: 2px solid var(--bx-line2);
	border-radius: var(--bx-r-xs);
	background: var(--bx-card);
	color: var(--bx-ink);
	font: inherit;
	font-size: 19px;
	box-sizing: border-box;
}

.bx-acc__inp::placeholder {
	color: var(--bx-muted);
	opacity: 0.8;
}

.bx-acc__inp:focus-visible {
	border-color: var(--bx-ink);
}

.bx-acc__inp[aria-invalid="true"] {
	border-color: var(--bx-danger);
}

.bx-acc__hint {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	color: var(--bx-muted);
}

.bx-acc__err {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	color: var(--bx-danger);
}

.bx-acc__err svg {
	flex: 0 0 auto;
	margin-top: 3px;
}

/* Password with show/hide */
.bx-acc__pw {
	position: relative;
}

.bx-acc__pw .bx-acc__inp {
	padding-right: 112px;
}

.bx-acc__pwt {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	height: 40px;
	padding: 0 14px;
	border: 0;
	border-radius: var(--bx-r-xs);
	background: var(--bx-bg2);
	color: var(--bx-ink);
	font: inherit;
	font-weight: 800;
	font-size: 15px;
	cursor: pointer;
}

@media (hover: hover) {
	.bx-acc__pwt:hover {
		box-shadow: inset 0 0 0 2px var(--bx-line2);
	}
}

/* Strength meter */
.bx-acc__meter {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 15px;
	color: var(--bx-muted);
}

.bx-acc__meter[hidden] {
	display: none;
}

.bx-acc__bars {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
}

.bx-acc__bars i {
	display: block;
	height: 6px;
	border-radius: var(--bx-r-dot);
	background: var(--bx-line2);
}

.bx-acc__bars i.is-on {
	background: var(--bx-copper);
}

.bx-acc__bars i.is-weak {
	background: var(--bx-danger);
}

.bx-acc__bars i.is-good {
	background: var(--bx-live);
}

.bx-acc__meter b {
	color: var(--bx-ink);
}

/* ---------- Messages ---------- */

.bx-acc__msg {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	border-radius: var(--bx-r-sm);
	font-size: 17px;
	line-height: 1.4;
	color: var(--bx-ink);
	background: var(--bx-bg2);
	box-shadow: inset 0 0 0 2px var(--bx-line2);
}

.bx-acc__msg svg {
	flex: 0 0 auto;
	margin-top: 2px;
}

.bx-acc__msg--error {
	background: var(--bx-danger-bg);
	box-shadow: inset 0 0 0 2px var(--bx-danger);
}

.bx-acc__msg--error svg,
.bx-acc__msg--error b {
	color: var(--bx-danger);
}

.bx-acc__msg--success {
	background: var(--bx-live-bg);
	box-shadow: inset 0 0 0 2px var(--bx-live);
}

.bx-acc__msg--success svg,
.bx-acc__msg--success b {
	color: var(--bx-live);
}

/* Icon box beside the title on „Провери пощата си“ and „Връзката не важи“ */
.bx-acc__ihd {
	display: flex;
	align-items: center;
	gap: 18px;
}

.bx-acc__ibox {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	border-radius: var(--bx-r-sm);
	background: var(--bx-tint);
	color: var(--bx-copper);
}

.bx-acc__ibox--bad {
	background: var(--bx-danger-bg);
	color: var(--bx-danger);
}

/* ---------- Side panel ---------- */

.bx-acc__side {
	position: relative;
	overflow: hidden;
	display: grid;
	gap: 22px;
	align-content: start;
	padding: 36px;
	border-radius: var(--bx-r-lg);
	background: var(--bx-tint);
}

.bx-acc__side > :not(.bx-acc__wm) {
	position: relative;
}

.bx-acc__wm {
	position: absolute;
	width: 52%;
	height: auto;
	right: -14%;
	bottom: -18%;
	transform: rotate(14deg);
	opacity: 0.14;
	mix-blend-mode: multiply;
	pointer-events: none;
}

:root[data-bc-theme="dark"] .bx-acc__wm {
	filter: grayscale(1) brightness(1.9);
	mix-blend-mode: screen;
	opacity: 0.08;
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 1024px) {
	.bx-acc__grid {
		grid-template-columns: minmax(0, 1fr);
		max-width: 640px;
	}
}

@media (max-width: 640px) {
	.bx-acc__card {
		padding: 22px 20px;
	}

	.bx-acc__tabs {
		margin: -22px -20px 4px;
	}

	.bx-acc__tabs a {
		height: 56px;
		font-size: 15px;
	}

	.bx-acc__side {
		padding: 26px 22px;
	}

	.bx-acc__acts .bx-b,
	.bx-acc__acts .bx-b .wp-block-button__link,
	.bx-acc__acts a.bx-b {
		width: 100%;
	}
}

/* ==========================================================================
   Моят профил (logged in): page top, Преглед, Плащания, Профил.
   Code: inc/account-profile.php. Design: canvas boards StoreAccount,
   StoreAccountFounder, StoreAccountFriend, StoreAccountPhone (2026-11-14).
   The cards, pills and membership card come from store.css.
   ========================================================================== */

/* ---------- Page top ---------- */

.bx-pf-top__in {
	position: relative;
	padding-top: calc(var(--bx-nav-h) + 8px);
}

.bx-pf {
	display: flex;
	align-items: center;
	gap: 36px;
}

.bx-pf__t {
	display: grid;
	gap: 10px;
	min-width: 0;
	padding-bottom: 6px;
}

.bx-pf__t > * {
	margin: 0 !important;
}

.bx-h1.bx-pf__name {
	max-width: none;
	font-size: 76px;
	color: #222222;
	overflow-wrap: anywhere;
}

.bx-pf__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	padding: 0;
}

.bx-pf-chip {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 14px;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}

.bx-pf-chip--k {
	background: #222222;
	color: #FAF3E1;
}

.bx-pf-chip--k.is-off {
	background: transparent;
	color: #222222;
	box-shadow: inset 0 0 0 2px rgba(34, 34, 34, 0.5);
}

.bx-pf-chip--l {
	background: rgba(255, 252, 243, 0.55);
	color: #222222;
}

.bx-pf-chip--gen {
	background: #1A1816;
	color: #F26921;
	box-shadow: inset 0 0 0 2px #F26921;
}

.bx-pf__since {
	font-size: 20px;
	font-weight: 600;
	color: #222222;
}

.bx-pf__hint {
	font-size: 17px;
	color: #222222;
}

.bx-pf__hint a {
	color: #222222;
	font-weight: 800;
	text-underline-offset: 3px;
}

/* Avatar: initials or a person on the level's colour, the badge faint behind. */
.bx-pf-av {
	position: relative;
	overflow: hidden;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 136px;
	height: 136px;
	border-radius: var(--bx-r-lg);
	background: #FFFCF3;
	color: #222222;
}

.bx-pf-av > svg,
.bx-pf-av__i {
	position: relative;
}

.bx-pf-av__i {
	font-weight: 900;
	font-size: 60px;
	line-height: 1;
	letter-spacing: -0.01em;
}

.bx-pf-av__wm {
	position: absolute;
	width: 96%;
	height: auto;
	right: -30%;
	bottom: -38%;
	transform: rotate(14deg);
	opacity: 0.12;
	mix-blend-mode: multiply;
	pointer-events: none;
}

/* The member's Nostr picture, loaded in their browser, covers the initials. */
.bx-pf-av .bc-nostr-pic {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bx-pf-av--supporter {
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1px rgba(34, 34, 34, 0.16);
}

/* Член is orange like the page top, so it gets an ink edge to stay visible. */
.bx-pf-av--member {
	background: #F26921;
	box-shadow: inset 0 0 0 3px #222222;
}

.bx-pf-av--hodler {
	background: #222222;
	color: #F26921;
}

.bx-pf-av--friend {
	background: #F5E7C6;
	color: #98370A;
}

.bx-pf-av--member .bx-pf-av__wm,
.bx-pf-av--hodler .bx-pf-av__wm {
	filter: grayscale(1) brightness(1.9);
	mix-blend-mode: screen;
	opacity: 0.14;
}

.bx-pf-av--sm {
	width: 88px;
	height: 88px;
}

.bx-pf-av--sm .bx-pf-av__i {
	font-size: 38px;
}

.bx-pf-av--sm > svg {
	width: 44px;
	height: 44px;
}

/* Tabs */
.bx-pf-tabs {
	display: flex;
	gap: 6px;
	margin-top: 36px;
	overflow-x: auto;
	scrollbar-width: none;
}

.bx-pf-tabs::-webkit-scrollbar {
	display: none;
}

.bx-pf-tabs a {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	height: 56px;
	padding: 0 24px;
	color: rgba(34, 34, 34, 0.78);
	font-weight: 800;
	font-size: 17px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: inset 0 -3px 0 transparent;
}

.bx-pf-tabs a.is-on {
	color: #222222;
	background: rgba(255, 252, 243, 0.35);
	box-shadow: inset 0 -3px 0 #222222;
}

.bx-pf-tabs a:focus-visible {
	outline: 3px solid #222222;
	outline-offset: -3px;
}

.bx-pf-tabs .bx-pf-tabs__out {
	margin-left: auto;
}

@media (hover: hover) {
	.bx-pf-tabs a:hover {
		color: #222222;
		box-shadow: inset 0 -3px 0 #222222;
	}
}

/* ---------- Section and tabs' content ---------- */

.bx-pf-sec {
	padding-block: 56px var(--bx-sec);
}

.bx-pf-sec :where(a, button, input, summary):focus-visible {
	outline: 3px solid var(--bx-focus);
	outline-offset: 3px;
}

.bx-pf-sec > .bx-wrap > .bx-acc__msg {
	margin-bottom: 24px;
}

.bx-pf-sec .bx-st-hd h2 {
	font-size: 34px;
}

/* Преглед */
.bx-pf-ov {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	align-items: stretch;
}

.bx-pf-wide {
	grid-column: 1 / -1;
}

.bx-pf-status .bx-acts {
	margin-top: auto;
}

.bx-pf-lvl {
	display: flex;
	align-items: center;
	gap: 18px;
}

.bx-pf-lvl > .bx-mc {
	width: 300px;
	flex: 0 0 auto;
}

.bx-pf-lvl__t b {
	display: block;
	font-weight: 900;
	font-size: 34px;
	line-height: 1;
}

.bx-pf-lvl__t span {
	font-size: 17px;
	color: var(--bx-muted);
}

/* No level yet: the three levels to choose from. */
.bx-pf-lvs {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bx-pf-lv {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	color: var(--bx-ink);
	text-decoration: none;
}

.bx-pf-lv__t b {
	display: block;
	font-weight: 900;
	font-size: 26px;
	line-height: 1;
}

.bx-pf-lv__t span {
	font-size: 17px;
	color: var(--bx-muted);
}

@media (hover: hover) {
	.bx-pf-lv:hover .bx-pf-lv__t b {
		text-decoration: underline;
		text-underline-offset: 4px;
	}
}

/* Paid months as a block calendar. Every month is a block: transactions on
   top, the month, the level chip. Months right → left, years top → bottom
   from newest, like a block explorer. */
.bx-bc {
	display: grid;
	gap: 26px;
}

.bx-bc__y {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.bx-bc__lbl {
	display: grid;
	gap: 4px;
	padding-top: 22px;
}

.bx-bc__lbl b {
	font-weight: 900;
	font-size: 30px;
	line-height: 1;
}

.bx-bc__lbl span {
	font-family: var(--bx-mono);
	font-weight: 500;
	font-size: 12px;
	line-height: 1.35;
	color: var(--bx-muted);
}

.bx-bc__row {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bx-bc__m {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	--bf: #FFFFFF;
	--bt: #222222;
	--bs: inset 0 0 0 1px rgba(34, 34, 34, 0.16);
	--q1: #E07A3A;
	--q2: #C9561C;
	--q3: #F0A273;
	--q4: #A9440F;
}

.bx-bc__n {
	height: 11px;
	font-family: var(--bx-mono);
	font-weight: 700;
	font-size: 11px;
	line-height: 1;
	color: var(--bx-copper);
	text-align: center;
	white-space: nowrap;
}

.bx-bc__bk {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 9px 7px;
	border-radius: var(--bx-r-xs);
	background: var(--bf);
	color: var(--bt);
	box-shadow: var(--bs);
}

.bx-bc__g {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 2px;
	margin-bottom: 8px;
}

.bx-bc__g i {
	display: block;
	aspect-ratio: 1;
	background: var(--q1);
}

.bx-bc__g i.q2 { background: var(--q2); }
.bx-bc__g i.q3 { background: var(--q3); }
.bx-bc__g i.q4 { background: var(--q4); }

.bx-bc__chip {
	margin-top: auto;
	align-self: flex-start;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 5px;
	font-weight: 800;
	font-size: 12px;
	line-height: 1;
	background: #222222;
	color: #FAF3E1;
}

/* Levels: Поддръжник white, Член orange, Key Hodler ink, Приятел cream. */
.bx-bc__m--f {
	--bf: #F5E7C6;
	--bs: none;
}

.bx-bc__m--f .bx-bc__n {
	color: var(--bx-muted);
}

.bx-bc__m--m {
	--bf: #F26921;
	--bs: none;
	--q1: #FFB48A;
	--q2: #C24A0A;
	--q3: #FFD2B5;
	--q4: #9A3606;
}

.bx-bc__m--h {
	--bf: #222222;
	--bt: #FAF3E1;
	--bs: none;
	--q1: #F26921;
	--q2: #BF4703;
	--q3: #FF8950;
	--q4: #7A2D08;
}

.bx-bc__m--h .bx-bc__chip {
	background: #F5E7C6;
	color: #222222;
}

:root[data-bc-theme="dark"] .bx-bc__m--h {
	--bf: #0B0A09;
	--bs: inset 0 0 0 1px rgba(250, 243, 225, 0.14);
}

/* A block links to the older month on its right. */
.bx-bc__m.is-lk .bx-bc__bk::after {
	content: "";
	position: absolute;
	right: -10px;
	top: 50%;
	z-index: 2;
	width: 10px;
	height: 2px;
	background: var(--bx-ink);
}

.bx-bc__m.is-now .bx-bc__bk {
	border-radius: 0;
	outline: 2px solid var(--bx-ink);
	outline-offset: 0;
}

.bx-bc__m.is-pre {
	opacity: 0.6;
}

.bx-bc__m.is-now .bx-bc__n {
	color: var(--bx-ink);
}

/* The next month: a pending block. */
.bx-bc__m--pe .bx-bc__bk {
	background: transparent;
	box-shadow: none;
	border: 2px dashed var(--bx-orange);
	color: var(--bx-ink);
}

.bx-bc__m--pe .bx-bc__g i {
	opacity: 0.4;
}

.bx-bc__m--pe .bx-bc__chip {
	background: transparent;
	color: var(--bx-copper);
	outline: 1.5px dashed var(--bx-orange);
	outline-offset: -1.5px;
}

.bx-bc__m--pe .bx-bc__n {
	color: var(--bx-muted);
}

/* No payment (before joining, a break or the future): a quiet dotted slot with
   the month, no height and no chip, so the calendar reads whole but a break is
   never called out. Future months are fainter still. */
.bx-bc__m--e .bx-bc__bk {
	background: transparent;
	box-shadow: none;
	border: 1.5px dotted var(--bx-line2);
	color: var(--bx-muted);
}

.bx-bc__m--e .bx-bc__g i {
	background: var(--bx-line);
	opacity: 0.6;
}

.bx-bc__m--e .bx-bc__chip {
	background: transparent;
	color: var(--bx-muted);
	padding-left: 0;
	font-weight: 500;
}

.bx-bc__m--e.is-fut {
	opacity: 0.5;
}

/* Genesis: September 2024, the founders' month. Height #0, one transaction
   (the coinbase), the genesis bytes behind. */
.bx-bc__m--gen .bx-bc__n {
	color: var(--bx-orange);
}

.bx-bc__m--gen .bx-bc__bk {
	--bf: #1A1816;
	--bt: #FAF3E1;
	--bs: none;
	overflow: hidden;
	outline: 2px solid var(--bx-orange);
	outline-offset: 3px;
}

.bx-bc__m--gen .bx-bc__bk::before {
	content: "01000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 3BA3EDFD 7A7B12B2 7AC72C3E 67768F61 7FC81BC3 888A5132 3A9FB8AA 4B1E5E4A 29AB5F49 FFFF001D 1DAC2B7C 01010000 00010000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0000FFFF FFFF4D04 FFFF001D 01044554 68652054 696D6573 2030332F 4A616E2F 32303039 20436861 6E63656C 6C6F7220 6F6E2062 72696E6B 206F6620 7365636F 6E642062 61696C6F 75742066 6F722062 616E6B73";
	position: absolute;
	inset: 4px;
	font-family: var(--bx-mono);
	font-size: 5.5px;
	line-height: 1.35;
	color: rgba(242, 105, 33, 0.22);
	word-break: break-all;
	overflow: hidden;
	pointer-events: none;
}

.bx-bc__m--gen .bx-bc__bk > * {
	position: relative;
}

.bx-bc__m--gen .bx-bc__g i {
	background: transparent;
	box-shadow: inset 0 0 0 1px rgba(242, 105, 33, 0.38);
}

.bx-bc__m--gen .bx-bc__g i.cb {
	background: #F26921;
	box-shadow: 0 0 0 2px rgba(242, 105, 33, 0.3);
}

.bx-bc__m--gen .bx-bc__chip {
	background: #F26921;
	color: #222222;
}

.bx-bc__leg {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	font-size: 15px;
	color: var(--bx-muted);
}

.bx-bc__leg span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.bx-bc__k {
	display: block;
	width: 16px;
	height: 16px;
}

.bx-bc__k--s { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--bx-line2); }
.bx-bc__k--m { background: #F26921; }
.bx-bc__k--f { background: #F5E7C6; box-shadow: inset 0 0 0 1px var(--bx-line2); }
.bx-bc__k--h { background: #222222; }
.bx-bc__k--pe { border: 2px dashed #F26921; box-sizing: border-box; }
.bx-bc__k--gen { background: #1A1816; outline: 2px solid #F26921; outline-offset: 1px; }

:root[data-bc-theme="dark"] .bx-bc__k--h {
	box-shadow: inset 0 0 0 1px var(--bx-line2);
}

/* Loyalty: one halving epoch, 48 paid months = 48 blocks. */
.bx-pf-ep__sum {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.bx-ep {
	display: grid;
	grid-template-columns: repeat(48, minmax(0, 1fr));
	gap: 30px 4px;
	align-items: end;
	padding: 26px 0 28px;
}

.bx-ep__c {
	position: relative;
	min-width: 0;
}

.bx-ep__c i {
	display: block;
	aspect-ratio: 1;
	background: var(--bx-bg2);
	box-shadow: inset 0 0 0 1px var(--bx-line);
}

.bx-ep__c.is-on i {
	background: var(--bx-orange);
	box-shadow: none;
}

.bx-ep__c.is-ms i {
	aspect-ratio: 1 / 2;
	background: transparent;
	box-shadow: inset 0 0 0 2px var(--bx-line2);
}

.bx-ep__c.is-ms.is-got i {
	background: var(--bx-ink);
	box-shadow: none;
}

.bx-ep__c.is-nx i {
	box-shadow: none;
	outline: 2px dashed var(--bx-orange);
	outline-offset: -2px;
}

.bx-ep__c.is-tip i {
	box-shadow: 0 0 0 2px var(--bx-card), 0 0 0 4px var(--bx-ink);
}

.bx-ep__c.is-tip::before {
	content: "ти";
	position: absolute;
	bottom: calc(100% + 7px);
	left: 50%;
	transform: translateX(-50%);
	padding: 3px 5px;
	font-family: var(--bx-mono);
	font-weight: 700;
	font-size: 11px;
	line-height: 1;
	white-space: nowrap;
	background: #F26921;
	color: #222222;
}

.bx-ep__c > span {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--bx-mono);
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
	color: var(--bx-muted);
}

.bx-ep__c.is-got > span {
	color: var(--bx-ink);
}

.bx-ep__c.is-nx > span {
	color: var(--bx-copper);
}

.bx-ep__c:last-child > span {
	left: auto;
	right: 0;
	transform: none;
}

@media (prefers-reduced-motion: no-preference) {
	.bx-ep__c.is-nx i {
		animation: bx-live 2.4s ease-in-out infinite;
	}
}

.bx-ep__ax {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 16px;
	padding-top: 12px;
	border-top: 1px solid var(--bx-line);
	font-family: var(--bx-mono);
	font-size: 13px;
	font-weight: 500;
	color: var(--bx-muted);
}

/* Плащания */
.bx-tbl-w {
	overflow-x: auto;
}

.bx-tbl {
	width: 100%;
	min-width: 620px;
	border-collapse: collapse;
	font-size: 18px;
}

.bx-tbl th {
	padding: 0 16px 14px 0;
	border-bottom: 2px solid var(--bx-line2);
	text-align: left;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bx-muted);
}

.bx-tbl td {
	padding: 18px 16px 18px 0;
	border-bottom: 1px solid var(--bx-line);
	vertical-align: middle;
}

.bx-tbl .bx-tbl__num {
	padding-right: 0;
	text-align: right;
	font-family: var(--bx-mono);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.bx-tbl__d {
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

.bx-tbl__d a {
	color: var(--bx-ink);
	text-underline-offset: 3px;
}

.bx-tbl__w {
	display: flex;
	align-items: center;
	gap: 14px;
}

.bx-tbl__w > .bx-mc {
	width: 64px;
	flex: 0 0 auto;
}

/* Профил */
.bx-pf-prof {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	align-items: start;
}

.bx-pf-pic {
	display: flex;
	align-items: center;
	gap: 18px;
}

.bx-pf-pic .bx-st-note {
	font-size: 17px;
}

.bx-pf-pw > summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	list-style: none;
	cursor: pointer;
	font-weight: 800;
	font-size: 18px;
	color: var(--bx-ink);
	box-shadow: inset 0 0 0 2px var(--bx-line2);
}

.bx-pf-pw > summary::-webkit-details-marker {
	display: none;
}

.bx-pf-pw[open] > summary {
	margin-bottom: 22px;
}

.bx-pf-pw__form {
	display: grid;
	gap: 22px;
}

@media (hover: hover) {
	.bx-pf-pw > summary:hover {
		box-shadow: inset 0 0 0 2px var(--bx-ink);
	}
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 1100px) {
	.bx-bc__row {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		row-gap: 16px;
	}

	.bx-bc__m.is-lk.is-e6 .bx-bc__bk::after {
		display: none;
	}
}

@media (max-width: 1024px) {
	.bx-h1.bx-pf__name {
		font-size: 60px;
	}

	.bx-pf-ov,
	.bx-pf-prof {
		grid-template-columns: minmax(0, 1fr);
	}

	.bx-ep {
		grid-template-columns: repeat(24, minmax(0, 1fr));
	}

	.bx-ep__c:nth-child(24) > span {
		left: auto;
		right: 0;
		transform: none;
	}
}

@media (max-width: 640px) {
	.bx-pf-top__in {
		padding-top: calc(var(--bx-nav-h) + 8px);
	}

	.bx-pf {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.bx-pf-av {
		width: 104px;
		height: 104px;
	}

	.bx-pf-av__i {
		font-size: 46px;
	}

	.bx-h1.bx-pf__name {
		font-size: 46px;
	}

	.bx-pf__since {
		font-size: 18px;
	}

	.bx-pf-tabs {
		margin-top: 24px;
		margin-inline: calc(-1 * var(--bx-gutter));
		padding-inline: var(--bx-gutter);
	}

	.bx-pf-tabs a {
		padding: 0 16px;
		font-size: 15px;
	}

	.bx-pf-sec {
		padding-top: 40px;
	}

	.bx-pf-sec .bx-st-card {
		padding: 22px 20px;
		gap: 18px;
	}

	.bx-pf-sec .bx-st-hd h2 {
		font-size: 28px;
	}

	.bx-pf-sec .bx-big {
		font-size: 44px;
	}

	.bx-pf-sec .bx-acts .bx-b {
		width: 100%;
		box-sizing: border-box;
	}

	.bx-pf-lvl {
		flex-direction: column;
		align-items: flex-start;
	}

	.bx-pf-lvl > .bx-mc {
		width: 100%;
		max-width: 280px;
	}

	.bx-pf-lv {
		grid-template-columns: 96px minmax(0, 1fr);
	}

	.bx-ep {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.bx-ep__c:nth-child(12n) > span {
		left: auto;
		right: 0;
		transform: none;
	}

	.bx-pf-pic {
		align-items: flex-start;
	}

	.bx-pf-pw > summary {
		width: 100%;
		box-sizing: border-box;
	}
}

@media (max-width: 600px) {
	.bx-bc__y {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.bx-bc__lbl {
		display: flex;
		align-items: baseline;
		gap: 10px;
		padding-top: 0;
	}

	.bx-bc__lbl b {
		font-size: 24px;
	}

	.bx-bc__row {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.bx-bc__m--e.is-out {
		display: none;
	}

	.bx-bc__m.is-lk .bx-bc__bk::after {
		display: none;
	}
}
