/* Personal cabinet — Phase A */

.vf-cabinet-main {
	box-sizing: border-box;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	padding-top: calc(88px + 28px);
	padding-bottom: 48px;
	background: #f1efe6;
}

.vf-cabinet {
	--vf-cabinet-ink: #17251c;
	--vf-cabinet-cream: #f1efe6;
	--vf-cabinet-muted: rgba(23, 37, 28, 0.62);
	--vf-cabinet-line: rgba(23, 37, 28, 0.14);
	box-sizing: border-box;
	width: min(1120px, 100%);
	margin: 0 auto;
	padding: 0 24px 40px;
	font-family: var(--vf-font-family, "Pliant", sans-serif);
	color: var(--vf-cabinet-ink);
}

.vf-cabinet *,
.vf-cabinet *::before,
.vf-cabinet *::after {
	box-sizing: border-box;
}

.vf-cabinet__auth {
	width: min(440px, 100%);
	margin: 0 auto;
}

/* Auth pages — fill viewport below fixed header, center form in that space */
body.vf-cabinet-page--login .vf-cabinet-main,
body.vf-cabinet-page--register .vf-cabinet-main,
body.vf-cabinet-page--lost-password .vf-cabinet-main,
body.vf-cabinet-page--reset-password .vf-cabinet-main {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	box-sizing: border-box;
	min-height: 100vh;
	min-height: 100dvh;
	min-height: 100svh;
	/* Fixed header clearance only — remaining height is for the auth block */
	padding-top: 88px;
	padding-bottom: 0;
}

body.vf-cabinet-page--login .vf-cabinet__auth,
body.vf-cabinet-page--register .vf-cabinet__auth,
body.vf-cabinet-page--lost-password .vf-cabinet__auth,
body.vf-cabinet-page--reset-password .vf-cabinet__auth {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1 1 auto;
	/* Keep .vf-cabinet side padding (24px); do not zero it for vertical flex */
	width: min(440px, 100%);
	margin: 0 auto;
	padding: 24px 24px 40px;
	box-sizing: border-box;
}

.vf-cabinet__title {
	margin: 0 0 12px;
	font-size: clamp(32px, 5vw, 44px);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.vf-cabinet__lead {
	margin: 0 0 28px;
	color: var(--vf-cabinet-muted);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}

.vf-cabinet__notice {
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.vf-cabinet__notice--error {
	background: rgba(140, 40, 40, 0.08);
	color: #6b1f1f;
}

.vf-cabinet__notice--success {
	background: rgba(23, 37, 28, 0.08);
	color: var(--vf-cabinet-ink);
}

/* Dashboard toast — fixed snackbar, does not shift layout */
.vf-cabinet [data-vf-cabinet-notice] {
	position: fixed;
	top: auto;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	left: 50%;
	z-index: 100050;
	width: min(420px, calc(100% - 32px));
	margin: 0;
	padding: 14px 18px;
	border-radius: 14px;
	background: #17251c;
	color: #f1efe6;
	box-shadow: 0 12px 32px rgba(23, 37, 28, 0.28);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	transform: translate(-50%, 10px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.vf-cabinet [data-vf-cabinet-notice].is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

.vf-cabinet [data-vf-cabinet-notice].vf-cabinet__notice--success {
	background: #2a6b45;
	color: #f1efe6;
	box-shadow: 0 12px 32px rgba(42, 107, 69, 0.32);
}

.vf-cabinet [data-vf-cabinet-notice].vf-cabinet__notice--error {
	background: #6b1f1f;
	color: #f8ecec;
}

.vf-cabinet__form {
	display: grid;
	gap: 14px;
}

.vf-cabinet__field {
	display: grid;
	gap: 6px;
}

.vf-cabinet__field label {
	font-size: 13px;
	font-weight: 500;
	color: var(--vf-cabinet-muted);
}

.vf-cabinet__field input {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid var(--vf-cabinet-line);
	border-radius: 15px;
	background: #fff;
	background-clip: padding-box;
	color: var(--vf-cabinet-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

/* Pliant makes password bullets tiny — use a system face for dots only.
   Larger font for readable bullets; fixed 48px height so control matches tel/text. */
.vf-cabinet__field input[type="password"] {
	box-sizing: border-box;
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 20px;
	letter-spacing: 0.08em;
	height: 48px;
	min-height: 48px;
	max-height: 48px;
	padding: 12px 16px;
	border: 1px solid var(--vf-cabinet-line);
	border-radius: 15px;
	background: #fff;
	line-height: 1;
	overflow: hidden;
}

.vf-cabinet__field input:-webkit-autofill,
.vf-cabinet__field input:-webkit-autofill:hover,
.vf-cabinet__field input:-webkit-autofill:focus {
	border: 1px solid var(--vf-cabinet-line);
	border-radius: 15px;
	-webkit-text-fill-color: var(--vf-cabinet-ink);
	caret-color: var(--vf-cabinet-ink);
	box-shadow: 0 0 0 1000px #fff inset;
	transition: background-color 99999s ease-out 0s;
}

.vf-cabinet__field input:focus {
	outline: 2px solid var(--vf-cabinet-ink);
	outline-offset: 1px;
	border-color: var(--vf-cabinet-ink);
}

.vf-cabinet__field input[aria-invalid="true"] {
	border-color: #8c2828;
}

.vf-cabinet__field input[aria-invalid="true"]:focus {
	outline-color: #8c2828;
	border-color: #8c2828;
}

.vf-cabinet__hint {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--vf-cabinet-muted);
}

.vf-cabinet__hint[hidden] {
	display: none;
}

.vf-cabinet__field.is-invalid .vf-cabinet__hint,
.vf-cabinet__field:has(input[aria-invalid="true"]) .vf-cabinet__hint {
	color: #6b1f1f;
}

.vf-cabinet__check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 2px 0 4px;
	font-size: 14px;
	font-weight: 500;
	color: var(--vf-cabinet-muted);
}

.vf-cabinet__check input {
	width: 18px;
	height: 18px;
	accent-color: var(--vf-cabinet-ink);
}

.vf-cabinet__submit {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 6px;
	padding: 12px 22px;
	border: 1px solid var(--vf-cabinet-ink);
	border-radius: 999px;
	background: var(--vf-cabinet-ink);
	color: var(--vf-cabinet-cream);
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
}

.vf-cabinet__submit:hover,
.vf-cabinet__submit:focus-visible {
	background: #19241a;
	border-color: #19241a;
	color: var(--vf-cabinet-cream);
}

.vf-cabinet__submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.vf-cabinet__submit:disabled:hover,
.vf-cabinet__submit:disabled:focus-visible {
	background: var(--vf-cabinet-ink);
	border-color: var(--vf-cabinet-ink);
	color: var(--vf-cabinet-cream);
}

.vf-cabinet__switch {
	margin: 22px 0 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--vf-cabinet-muted);
}

.vf-cabinet__switch a {
	color: var(--vf-cabinet-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.vf-cabinet__top {
	margin-bottom: clamp(28px, 4vw, 40px);
}

.vf-cabinet__greeting {
	width: 100%;
}

.vf-cabinet__title-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.vf-cabinet__title-row .vf-cabinet__title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	white-space: normal;
	overflow-wrap: normal;
	word-break: normal;
}

/* Keep the name on one line; if it does not fit, wrap after «Вітаємо,». */
.vf-cabinet__title-name {
	white-space: nowrap;
}

.vf-cabinet__top-tools {
	display: flex;
	align-items: flex-start;
	flex-shrink: 0;
	gap: 10px;
	margin-top: 2px;
}

a.vf-cabinet__profile-edit {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(23, 37, 28, 0.22) !important;
	border-radius: 999px !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #17251c !important;
	text-decoration: none !important;
	cursor: pointer;
}

a.vf-cabinet__profile-edit:hover,
a.vf-cabinet__profile-edit:focus-visible {
	border-color: #17251c !important;
	background: rgba(23, 37, 28, 0.06) !important;
	outline: none !important;
	color: #17251c !important;
}

a.vf-cabinet__profile-edit svg {
	display: block;
}

.vf-cabinet__back {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.vf-cabinet__back a {
	color: var(--vf-cabinet-muted);
	text-decoration: none;
}

.vf-cabinet__back-arrow {
	margin-right: 0.35em;
}

.vf-cabinet__back a:hover,
.vf-cabinet__back a:focus-visible {
	color: #17251c;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.vf-cabinet__logout {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(23, 37, 28, 0.22) !important;
	border-radius: 999px !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #17251c !important;
	cursor: pointer;
}

.vf-cabinet__logout:hover,
.vf-cabinet__logout:focus-visible {
	border-color: #17251c !important;
	background: rgba(23, 37, 28, 0.06) !important;
	outline: none !important;
}

.vf-cabinet__logout svg {
	display: block;
}

.vf-cabinet__telegram,
a.vf-cabinet__telegram {
	display: inline-flex !important;
	width: auto;
	min-width: 240px;
	text-decoration: none !important;
}

.vf-cabinet-modal__dialog--compact {
	width: min(380px, 100%);
	/* Cream site bg — same plate as subscribe dialog */
	background: #f1efe6;
}

.vf-cabinet-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.vf-cabinet-modal__actions .vf-cabinet__ghost,
.vf-cabinet-modal__actions .vf-cabinet__submit {
	flex: 1 1 140px;
	margin-top: 0;
	text-align: center;
	text-decoration: none;
}

.vf-cabinet__ghost,
.vf-cabinet button.vf-cabinet__ghost {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid rgba(23, 37, 28, 0.22) !important;
	border-radius: 999px !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #17251c !important;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
}

.vf-cabinet__ghost:hover,
.vf-cabinet__ghost:focus,
.vf-cabinet__ghost:focus-visible,
.vf-cabinet__ghost:active,
.vf-cabinet button.vf-cabinet__ghost:hover,
.vf-cabinet button.vf-cabinet__ghost:focus,
.vf-cabinet button.vf-cabinet__ghost:focus-visible,
.vf-cabinet button.vf-cabinet__ghost:active {
	border-color: #17251c !important;
	background: rgba(23, 37, 28, 0.08) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #17251c !important;
	outline: none !important;
}

.vf-cabinet__section {
	margin-top: clamp(36px, 5vw, 56px);
}

.vf-cabinet__section-title {
	margin: 0 0 8px;
	font-size: clamp(24px, 3.4vw, 32px);
	font-weight: 500;
	line-height: 1.15;
}

.vf-cabinet__section-text {
	margin: 0 0 22px;
	max-width: 40rem;
	color: var(--vf-cabinet-muted);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}

.vf-cabinet__placeholder {
	padding: 22px 20px;
	border: 1px dashed var(--vf-cabinet-line);
	border-radius: 18px;
	background: rgba(241, 239, 230, 0.55);
	color: var(--vf-cabinet-muted);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}

.vf-cabinet__sub {
	position: relative;
	padding: 22px 20px 20px;
	border: none;
	border-radius: 18px;
	background: transparent;
}

.vf-cabinet__sub::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	/* Wider gaps than native border-dashed; scales with the card. */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Crect x='0.7' y='0.7' width='98.6' height='98.6' rx='4.5' ry='4.5' fill='none' stroke='%2317251C' stroke-opacity='0.14' stroke-width='1.35' stroke-dasharray='2.2 3.4' stroke-linecap='round' pathLength='100' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.vf-cabinet__sub.is-preview {
	box-shadow: none;
}

.vf-cabinet__sub-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.vf-cabinet__sub-badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	background: rgba(23, 37, 28, 0.1);
	color: var(--vf-cabinet-ink);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
}

.vf-cabinet__sub-note {
	color: var(--vf-cabinet-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.vf-cabinet__sub-amount {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 10px;
	margin: 0 0 18px;
}

.vf-cabinet__sub-amount-value {
	font-size: clamp(36px, 7vw, 48px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.03em;
}

.vf-cabinet__sub-amount-unit {
	color: var(--vf-cabinet-muted);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
}

.vf-cabinet__sub-meta {
	display: grid;
	gap: 12px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.vf-cabinet__sub-meta li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	padding-top: 12px;
	border-top: 1px solid var(--vf-cabinet-line);
}

.vf-cabinet__sub-meta-label {
	color: var(--vf-cabinet-muted);
	font-size: 13px;
	font-weight: 500;
}

.vf-cabinet__sub-meta-value {
	font-size: 15px;
	font-weight: 500;
	text-align: right;
}

.vf-cabinet__sub-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.vf-cabinet__sub-actions .vf-cabinet__submit,
.vf-cabinet__sub-actions .vf-cabinet__ghost {
	flex: 1 1 160px;
	margin-top: 0;
	min-height: 48px;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
}

.vf-cabinet__sub-actions .vf-cabinet__sub-pay {
	flex: 1 1 100%;
}

.vf-cabinet__sub-actions .vf-cabinet__submit:disabled,
.vf-cabinet__sub-actions .vf-cabinet__ghost:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.vf-cabinet__sub--empty {
	display: grid;
	gap: 12px;
	justify-items: start;
}

.vf-cabinet__sub-empty-title {
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.25;
}

.vf-cabinet__sub-empty-text {
	margin: 0 0 6px;
	max-width: 36rem;
	color: var(--vf-cabinet-muted);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}

.vf-cabinet__sub--empty .vf-cabinet__submit {
	margin-top: 4px;
	width: auto;
	min-width: 220px;
}

html.vf-cabinet-modal-open,
html.vf-cabinet-modal-open body {
	overflow: hidden;
}

.vf-cabinet-modal[hidden] {
	display: none !important;
}

.vf-cabinet-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.vf-cabinet-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(23, 37, 28, 0.48);
}

.vf-cabinet-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(440px, 100%);
	max-height: min(90vh, 720px);
	overflow: auto;
	padding: 28px 22px 24px;
	border-radius: 28px;
	background: #f1efe6;
	color: var(--vf-cabinet-ink);
	box-shadow: 0 18px 50px rgba(23, 37, 28, 0.22);
}

.vf-cabinet-modal__close,
.vf-cabinet-modal button.vf-cabinet-modal__close {
	-webkit-appearance: none !important;
	appearance: none !important;
	position: absolute;
	top: 10px;
	right: 12px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #17251c !important;
	font-family: inherit !important;
	font-size: 28px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	cursor: pointer;
}

.vf-cabinet-modal__close:hover,
.vf-cabinet-modal__close:focus,
.vf-cabinet-modal__close:focus-visible,
.vf-cabinet-modal__close:active {
	border: 0 !important;
	background: rgba(23, 37, 28, 0.08) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #17251c !important;
	outline: none !important;
}

.vf-cabinet-modal__title {
	margin: 0 36px 8px 0;
	font-size: 26px;
	font-weight: 500;
	line-height: 1.15;
	color: #17251c;
}

.vf-cabinet-modal__text {
	margin: 0 0 18px;
	color: var(--vf-cabinet-muted);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
}

.vf-cabinet-modal__presets {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.vf-cabinet-modal__preset,
.vf-cabinet-modal button.vf-cabinet-modal__preset {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 10px 12px !important;
	border: 1px solid rgba(23, 37, 28, 0.28) !important;
	border-radius: 999px !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #17251c !important;
	font-family: var(--vf-font-family, "Pliant", sans-serif) !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	cursor: pointer;
}

.vf-cabinet-modal__preset:hover,
.vf-cabinet-modal__preset:focus,
.vf-cabinet-modal__preset:focus-visible,
.vf-cabinet-modal__preset:active {
	border-color: #17251c !important;
	background: rgba(23, 37, 28, 0.06) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #17251c !important;
	outline: none !important;
}

.vf-cabinet-modal__preset.is-active,
.vf-cabinet-modal__preset.is-active:hover,
.vf-cabinet-modal__preset.is-active:focus,
.vf-cabinet-modal__preset.is-active:focus-visible {
	border-color: #17251c !important;
	background: #17251c !important;
	background-image: none !important;
	color: #f1efe6 !important;
}

.vf-cabinet-modal .vf-cabinet__field {
	display: grid;
	gap: 6px;
}

.vf-cabinet-modal .vf-cabinet__field > span {
	font-size: 13px;
	font-weight: 500;
	color: var(--vf-cabinet-muted);
}

.vf-cabinet-modal .vf-cabinet__field input {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	height: 48px;
	padding: 12px 16px;
	border: 1px solid rgba(23, 37, 28, 0.22);
	border-radius: 999px;
	background: #fff !important;
	color: #17251c !important;
	font-family: var(--vf-font-family, "Pliant", sans-serif);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	box-shadow: none !important;
}

.vf-cabinet-modal .vf-cabinet__field input[type="password"] {
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 20px;
	letter-spacing: 0.08em;
	height: 48px;
	min-height: 48px;
	max-height: 48px;
	line-height: 1;
	overflow: hidden;
}

.vf-cabinet-modal .vf-cabinet__field input:focus {
	outline: 2px solid #17251c;
	outline-offset: 1px;
	border-color: #17251c;
}

.vf-cabinet-modal__submit,
.vf-cabinet-modal button.vf-cabinet-modal__submit {
	width: 100% !important;
	margin-top: 16px !important;
	border: 1px solid #17251c !important;
	background: #17251c !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #f1efe6 !important;
}

.vf-cabinet-modal__submit:hover,
.vf-cabinet-modal__submit:focus,
.vf-cabinet-modal__submit:focus-visible,
.vf-cabinet-modal__submit:active {
	border-color: #19241a !important;
	background: #19241a !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #f1efe6 !important;
	outline: none !important;
}

.vf-cabinet [data-vf-cabinet-notice]:focus {
	outline: none;
}

.vf-cabinet [data-vf-cabinet-notice][hidden] {
	display: block !important;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 10px);
}

.vf-cabinet__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.vf-cabinet__history-wrap {
	margin-top: 22px;
}

.vf-cabinet__history-title {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.25;
}

.vf-cabinet__history {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--vf-cabinet-line);
}

.vf-cabinet__history-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 20px;
	padding: 14px 0;
	border-bottom: 1px solid var(--vf-cabinet-line);
}

.vf-cabinet__history-main {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.vf-cabinet__history-amount {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
}

.vf-cabinet__history-source {
	color: var(--vf-cabinet-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
}

.vf-cabinet__history-date {
	flex-shrink: 0;
	color: var(--vf-cabinet-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	text-align: right;
}

.vf-cabinet__reports {
	display: grid;
	gap: 28px;
}

.vf-cabinet__reports-block {
	display: grid;
	gap: 14px;
}

.vf-cabinet__reports-heading {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.25;
}

.vf-cabinet__reports-project {
	display: grid;
	gap: 8px;
}

.vf-cabinet__reports-project + .vf-cabinet__reports-project {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--vf-cabinet-line);
}

.vf-cabinet__reports-project-title {
	color: var(--vf-cabinet-ink);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}

a.vf-cabinet__reports-project-title:hover,
a.vf-cabinet__reports-project-title:focus-visible {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.vf-cabinet__report-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--vf-cabinet-line);
}

.vf-cabinet__report-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px 20px;
	padding: 14px 0;
	border-bottom: 1px solid var(--vf-cabinet-line);
}

.vf-cabinet__report-main {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.vf-cabinet__report-title {
	color: var(--vf-cabinet-ink);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}

a.vf-cabinet__report-title:hover,
a.vf-cabinet__report-title:focus-visible {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.vf-cabinet__report-meta,
.vf-cabinet__report-desc {
	color: var(--vf-cabinet-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.vf-cabinet__report-link {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--vf-cabinet-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.vf-cabinet__profile {
	display: grid;
	gap: 28px;
	max-width: 440px;
}

.vf-cabinet__field input[readonly],
.vf-cabinet__field input:disabled {
	background: color-mix(in srgb, var(--vf-cabinet-line) 35%, #fff);
	color: var(--vf-cabinet-muted);
	cursor: not-allowed;
}

.vf-cabinet__field input[readonly]:focus,
.vf-cabinet__field input:disabled:focus {
	outline: none;
	border-color: var(--vf-cabinet-line);
}

.vf-cabinet__profile-form {
	gap: 12px;
}

.vf-cabinet__profile-form > .vf-cabinet__submit {
	width: 100%;
	margin-top: 4px;
}

.vf-cabinet__password {
	display: grid;
	gap: 16px;
	justify-items: start;
}

/* Ghost buttons use display:inline-flex !important (higher specificity than
   UA [hidden]). Force collapse for toggle, actions, and the form. */
.vf-cabinet__password [hidden],
.vf-cabinet__password button.vf-cabinet__ghost[hidden],
.vf-cabinet__password button.vf-cabinet__password-toggle[hidden],
.vf-cabinet__password form[hidden],
.vf-cabinet__password.is-open > .vf-cabinet__password-toggle {
	display: none !important;
}

.vf-cabinet__password-toggle {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 12px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	width: auto;
	min-width: 0;
	min-height: 44px;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--vf-cabinet-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.vf-cabinet__password-toggle:hover,
.vf-cabinet__password-toggle:focus,
.vf-cabinet__password-toggle:focus-visible,
.vf-cabinet__password-toggle:active {
	background: transparent;
	box-shadow: none;
	outline: none;
	color: var(--vf-cabinet-ink);
}

.vf-cabinet__password .vf-cabinet__profile-form {
	width: 100%;
	gap: 14px;
}

.vf-cabinet__password-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
}

.vf-cabinet__password-actions .vf-cabinet__submit,
.vf-cabinet__password-actions .vf-cabinet__ghost {
	flex: 1 1 140px;
	margin-top: 0;
	min-width: 0;
}

.vf-cabinet__profile-lost {
	margin: 4px 0 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--vf-cabinet-muted);
}

.vf-cabinet__profile-lost a {
	color: var(--vf-cabinet-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.vf-cabinet__stat {
	padding: 18px 16px;
	border-radius: 16px;
	background: rgba(23, 37, 28, 0.05);
}

.vf-cabinet__help-card {
	padding: 24px 20px;
	border-radius: 16px;
	background: rgba(23, 37, 28, 0.05);
	text-align: center;
}

.vf-cabinet__help-card .vf-cabinet__section-text {
	margin-bottom: 18px;
	margin-inline: auto;
}

.vf-cabinet__help-card .vf-cabinet__telegram {
	margin-top: 0;
}

.vf-cabinet__stat-value {
	display: block;
	margin-bottom: 4px;
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 500;
	line-height: 1.1;
}

.vf-cabinet__stat-label {
	display: block;
	color: var(--vf-cabinet-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
}

.vf-cabinet__projects .vf-projects {
	margin-top: 0;
}

.vf-cabinet__projects .vf-projects--slider {
	margin-right: -24px;
	padding-right: 24px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.vf-cabinet__projects .vf-projects--slider > .vf-project-card {
	scroll-snap-align: start;
}

.bf-cabinet-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 4px;
	color: inherit;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.bf-cabinet-link:hover,
.bf-cabinet-link:focus-visible {
	opacity: 0.72;
}

.bf-header__inner > .bf-cabinet-link {
	margin-inline-end: 8px;
}

.bf-mobile-cabinet {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin-top: 12px;
	padding: 12px 18px;
	border: 1px solid rgba(241, 239, 230, 0.35);
	border-radius: 999px;
	color: #f1efe6;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	text-align: center;
}

@media (max-width: 900px) {
	.vf-cabinet-main {
		padding-top: calc(var(--vf-mobile-header-height, 72px) + 24px);
		padding-bottom: 40px;
	}

	body.vf-cabinet-page--login .vf-cabinet-main,
	body.vf-cabinet-page--register .vf-cabinet-main,
	body.vf-cabinet-page--lost-password .vf-cabinet-main,
	body.vf-cabinet-page--reset-password .vf-cabinet-main {
		padding-top: var(--vf-mobile-header-height, 72px);
		padding-bottom: 0;
	}

	body.vf-cabinet-page--login .vf-cabinet__auth,
	body.vf-cabinet-page--register .vf-cabinet__auth,
	body.vf-cabinet-page--lost-password .vf-cabinet__auth,
	body.vf-cabinet-page--reset-password .vf-cabinet__auth {
		width: min(440px, 100%);
		padding: 24px 16px 32px;
	}

	.vf-cabinet {
		padding-inline: 16px;
		padding-bottom: 32px;
	}

	.vf-cabinet__title {
		font-size: 32px;
	}

	.vf-cabinet__lead {
		margin-bottom: 22px;
		font-size: 15px;
	}

	.vf-cabinet__stats {
		grid-template-columns: 1fr;
	}

	.vf-cabinet__projects .vf-projects--slider {
		margin-right: -16px;
		padding-right: 16px;
	}

	.bf-header__inner > .bf-cabinet-link {
		display: none;
	}
}
