/**
 * Xfinitive — account pages (signup, login, payment, dashboard)
 *
 * Matches the SBG landing design language: dark by default, light via
 * html[data-theme="light"]. Brand: #B12325 / #DE650E.
 */

body.sbg-account-page {
	background: #060606 !important;
	margin: 0;
}

/* Hide theme chrome so the auth pages render full-screen.
   Covers NextMind/Elementor Kit and block themes (Twenty Twenty-Four). */
body.sbg-account-page .ekit-template-content-header,
body.sbg-account-page .ekit-template-content-footer,
body.sbg-account-page .ekit-template-content-theme-support,
body.sbg-account-page .page-header,
body.sbg-account-page header.site-header,
body.sbg-account-page footer.site-footer,
body.sbg-account-page .site-footer,
body.sbg-account-page .preloader,
body.sbg-account-page .wp-site-blocks > header,
body.sbg-account-page .wp-site-blocks > footer,
body.sbg-account-page header.wp-block-template-part,
body.sbg-account-page footer.wp-block-template-part,
body.sbg-account-page .wp-block-template-part[area="header"],
body.sbg-account-page .wp-block-template-part[area="footer"],
body.sbg-account-page .wp-block-site-title,
body.sbg-account-page .wp-block-navigation,
body.sbg-account-page .wp-block-group.has-global-padding > .wp-block-group:has(.wp-block-site-title),
/* Title/spacer only — never hide a group that wraps .xfin-account
   (TT5 puts title + content in one main > .wp-block-group). */
body.sbg-account-page main > .wp-block-group:not(:has(.xfin-account)):has(.wp-block-post-title),
body.sbg-account-page .entry-header,
body.sbg-account-page .wp-block-post-title,
body.sbg-account-page h1.wp-block-post-title,
body.sbg-account-page .entry-title,
body.sbg-account-page .wp-block-spacer {
	display: none !important;
}

body.sbg-account-page .site-main,
body.sbg-account-page main.site-main,
body.sbg-account-page main {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

body.sbg-account-page #content,
body.sbg-account-page .page-content,
body.sbg-account-page .entry-content,
body.sbg-account-page .page-content-body,
body.sbg-account-page .post-content,
body.sbg-account-page .post-entry {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

/* Block themes pin shortcodes to a narrow content measure (~620px). Lift it. */
body.sbg-account-page .is-layout-constrained,
body.sbg-account-page .is-layout-flow,
body.sbg-account-page .wp-block-post-content,
body.sbg-account-page .wp-block-group,
body.sbg-account-page .wp-block-group-is-layout-constrained,
body.sbg-account-page .wp-site-blocks,
body.sbg-account-page .wp-block-post-content-is-layout-constrained {
	--wp--style--global--content-size: none !important;
	--wp--style--global--wide-size: none !important;
	--wp--style--root--padding-left: 0px !important;
	--wp--style--root--padding-right: 0px !important;
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.sbg-account-page .is-layout-constrained > * {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.sbg-account-page .xfin-account {
	width: 100% !important;
	max-width: none !important;
}

/* The landing theme adds a fixed magic cursor and a preloader overlay. */
body.sbg-account-page.tt-magic-cursor { cursor: auto; }
body.sbg-account-page .magic-cursor,
body.sbg-account-page .cursor-outer,
body.sbg-account-page .cursor-inner { display: none !important; }

body.sbg-account-page .container,
body.sbg-account-page .row {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.sbg-account-page .row > *,
body.sbg-account-page .col-md-12 {
	padding: 0 !important;
}

.xfin-account {
	--xfin-bg: #060606;
	--xfin-card: rgba(255, 255, 255, 0.035);
	--xfin-border: rgba(255, 255, 255, 0.1);
	--xfin-text: #a7aabb;
	--xfin-heading: #ffffff;
	--xfin-accent: #b12325;
	--xfin-accent2: #de650e;
	--xfin-font: "Manrope", system-ui, -apple-system, sans-serif;

	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 20px;
	font-family: var(--xfin-font);
	color: var(--xfin-text);
	background: var(--xfin-bg);
	overflow: hidden;
	box-sizing: border-box;
}

.xfin-account *,
.xfin-account *::before,
.xfin-account *::after { box-sizing: border-box; }

/* ---------- Background atmosphere ---------- */

.xfin-account__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.xfin-account__aurora {
	position: absolute;
	inset: -20% -10% auto;
	height: 80%;
	background:
		radial-gradient(ellipse 44% 56% at 18% 26%, rgba(177, 35, 37, 0.34), transparent 60%),
		radial-gradient(ellipse 42% 54% at 82% 20%, rgba(21, 57, 154, 0.32), transparent 62%),
		radial-gradient(ellipse 38% 50% at 50% 74%, rgba(124, 42, 232, 0.2), transparent 60%),
		radial-gradient(ellipse 32% 44% at 70% 88%, rgba(222, 101, 14, 0.2), transparent 62%);
	filter: blur(40px);
	animation: xfin-aurora 18s ease-in-out infinite alternate;
}

@keyframes xfin-aurora {
	0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
	100% { transform: translate3d(2%, 2%, 0) scale(1.07); }
}

.xfin-account__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px);
	background-size: 62px 62px;
	-webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 42%, #000 8%, transparent 76%);
	mask-image: radial-gradient(ellipse 62% 58% at 50% 42%, #000 8%, transparent 76%);
}

.xfin-account__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.42;
	animation: xfin-float 12s ease-in-out infinite;
}

.xfin-account__orb--a {
	width: 320px;
	height: 320px;
	top: -40px;
	left: -60px;
	background: rgba(177, 35, 37, 0.5);
}

.xfin-account__orb--b {
	width: 280px;
	height: 280px;
	bottom: -60px;
	right: -50px;
	background: rgba(59, 110, 245, 0.42);
	animation-delay: 1.6s;
	animation-direction: reverse;
}

@keyframes xfin-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-18px); }
}

/* ---------- Shell ---------- */

.xfin-account__shell {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 452px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	animation: xfin-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.xfin-account__shell--wide { max-width: 980px; }

@keyframes xfin-rise {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}

.xfin-account__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
}

.xfin-account__top--wide {
	max-width: 100%;
}

.xfin-account__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none !important;
}

/* Theme toggle */
.xfin-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	margin: 0;
	border-radius: 12px;
	border: 1px solid var(--xfin-border);
	background: rgba(255, 255, 255, 0.04);
	color: var(--xfin-text);
	-webkit-text-fill-color: var(--xfin-text);
	cursor: pointer;
	flex: 0 0 auto;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.xfin-theme-toggle:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--xfin-heading);
	-webkit-text-fill-color: var(--xfin-heading);
}

html[data-theme="light"] .xfin-theme-toggle {
	background: #fff;
	border-color: rgba(20, 22, 28, 0.14);
	color: #2a2e38;
	-webkit-text-fill-color: #2a2e38;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 8px 18px rgba(20, 22, 28, 0.05);
}

.xfin-theme-toggle__icon { display: grid; place-items: center; }
.xfin-theme-toggle__icon--sun { display: none; }
.xfin-theme-toggle__icon--moon { display: grid; }
html[data-theme="light"] .xfin-theme-toggle__icon--sun { display: grid; }
html[data-theme="light"] .xfin-theme-toggle__icon--moon { display: none; }

.xfin-account__mark {
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--xfin-accent2), var(--xfin-accent));
	box-shadow: 0 6px 18px rgba(177, 35, 37, 0.4);
}

.xfin-account__brand-name {
	font-size: 1.12rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--xfin-heading);
	-webkit-text-fill-color: var(--xfin-heading);
}

.xfin-account__logo {
	display: block;
	height: 44px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
}

.xfin-account__logo--light { display: none !important; }

html[data-theme="light"] .xfin-account__logo--dark { display: none !important; }
html[data-theme="light"] .xfin-account__logo--light { display: block !important; }

/* ---------- Card ---------- */

.xfin-account__card {
	width: 100%;
	padding: 38px 32px 30px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--xfin-border);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.06) inset,
		0 30px 70px rgba(0, 0, 0, 0.42);
	backdrop-filter: blur(18px);
	text-align: left;
}

.xfin-account__eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	padding: 6px 13px;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ffd9a8;
	-webkit-text-fill-color: #ffd9a8;
	background: rgba(222, 101, 14, 0.1);
	border: 1px solid rgba(222, 101, 14, 0.38);
}

.xfin-account__title {
	margin: 0 0 10px;
	font-size: 30px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--xfin-heading);
	-webkit-text-fill-color: var(--xfin-heading);
}

.xfin-account__lead {
	margin: 0 0 26px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--xfin-text);
	-webkit-text-fill-color: var(--xfin-text);
}

/* ---------- Form ---------- */

.xfin-form { display: flex; flex-direction: column; gap: 18px; }

.xfin-field { display: flex; flex-direction: column; gap: 8px; }

.xfin-field label {
	font-size: 13.5px;
	font-weight: 600;
	color: rgba(240, 241, 247, 0.86);
	-webkit-text-fill-color: rgba(240, 241, 247, 0.86);
}

.xfin-field__wrap { position: relative; display: flex; }

.xfin-field input {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border-radius: 13px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	color: #fff;
	-webkit-text-fill-color: #fff;
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(255, 255, 255, 0.13);
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.xfin-field input::placeholder { color: rgba(167, 170, 187, 0.6); }

.xfin-field input:focus {
	border-color: rgba(222, 101, 14, 0.6);
	box-shadow: 0 0 0 4px rgba(222, 101, 14, 0.12);
	background: rgba(255, 255, 255, 0.07);
}

.xfin-field__wrap input { padding-right: 62px; }

/* The theme ships an aggressive global button style (gradient background,
   pill radius, large padding). Override it explicitly. */
body.sbg-account-page .xfin-account .xfin-field__toggle {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	background-image: none;
	box-shadow: none;
	color: rgba(167, 170, 187, 0.85);
	-webkit-text-fill-color: rgba(167, 170, 187, 0.85);
	cursor: pointer;
	line-height: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: background 0.18s ease, color 0.18s ease;
}

body.sbg-account-page .xfin-account .xfin-field__toggle:hover,
body.sbg-account-page .xfin-account .xfin-field__toggle:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	background-image: none;
	color: #ffb46b;
	-webkit-text-fill-color: #ffb46b;
	outline: none;
}

.xfin-eye {
	display: block;
	width: 18px;
	height: 18px;
}

/* Show the "eye" when the password is hidden, and the "eye-off" once revealed. */
.xfin-field__toggle .xfin-eye--hide { display: none; }
.xfin-field__toggle.is-visible .xfin-eye--show { display: none; }
.xfin-field__toggle.is-visible .xfin-eye--hide { display: block; }

/* Chrome paints autofilled inputs with its own light background. Force ours. */
.xfin-field input:-webkit-autofill,
.xfin-field input:-webkit-autofill:hover,
.xfin-field input:-webkit-autofill:focus,
.xfin-field input:-webkit-autofill:active {
	-webkit-text-fill-color: #fff !important;
	-webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.045) inset !important;
	box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.045) inset !important;
	caret-color: #fff;
	transition: background-color 9999s ease-out 0s;
}

.xfin-field__hint {
	align-self: flex-end;
	font-size: 12.5px;
	font-weight: 600;
	color: rgba(167, 170, 187, 0.9);
	-webkit-text-fill-color: rgba(167, 170, 187, 0.9);
	text-decoration: none;
}

.xfin-field__hint:hover { color: #ffb46b; -webkit-text-fill-color: #ffb46b; }

.xfin-form__alert {
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	color: #ffd4d4;
	-webkit-text-fill-color: #ffd4d4;
	background: rgba(177, 35, 37, 0.16);
	border: 1px solid rgba(177, 35, 37, 0.45);
}

.xfin-form__fine {
	margin: 0;
	text-align: center;
	font-size: 12.5px;
	font-weight: 600;
	color: rgba(167, 170, 187, 0.85);
	-webkit-text-fill-color: rgba(167, 170, 187, 0.85);
}

/* ---------- Buttons ---------- */

.xfin-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 30px;
	border-radius: 100px;
	border: 0;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.xfin-btn--primary {
	color: #fff;
	-webkit-text-fill-color: #fff;
	background-image: linear-gradient(90deg, var(--xfin-accent) 40%, var(--xfin-accent2) 120%);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.08) inset,
		0 16px 40px rgba(177, 35, 37, 0.38);
}

.xfin-btn--primary:hover:not(:disabled) {
	transform: translateY(-2px);
	background-image: linear-gradient(90deg, var(--xfin-accent2) 0%, var(--xfin-accent) 100%);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.12) inset,
		0 20px 48px rgba(222, 101, 14, 0.42);
}

.xfin-btn--primary:disabled { opacity: 0.6; cursor: not-allowed; }

.xfin-btn--block { width: 100%; }

.xfin-btn--ghost {
	color: #fff;
	-webkit-text-fill-color: #fff;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.18);
	min-height: 46px;
	font-size: 0.92rem;
	padding: 0 22px;
}

.xfin-btn--ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.11); }

.xfin-btn--danger {
	color: #ff9d9d;
	-webkit-text-fill-color: #ff9d9d;
	background: rgba(177, 35, 37, 0.14);
	border: 1px solid rgba(177, 35, 37, 0.45);
	min-height: 46px;
	font-size: 0.92rem;
	padding: 0 22px;
}

.xfin-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.xfin-btn__arrow { transition: transform 0.26s ease; }
.xfin-btn:hover .xfin-btn__arrow { transform: translateX(4px); }

.xfin-form.is-loading .xfin-btn__label { opacity: 0.6; }
.xfin-form.is-loading .xfin-btn { pointer-events: none; }

/* ---------- Auth footer ---------- */

.xfin-account__switch {
	margin: 22px 0 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	text-align: center;
	font-size: 14px;
	color: var(--xfin-text);
	-webkit-text-fill-color: var(--xfin-text);
}

.xfin-account__switch a {
	margin-left: 6px;
	font-weight: 700;
	color: #ffb46b;
	-webkit-text-fill-color: #ffb46b;
	text-decoration: none;
}

.xfin-account__switch a:hover { text-decoration: underline; }

.xfin-account__trust {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 18px;
}

.xfin-account__trust li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(200, 203, 214, 0.85);
	-webkit-text-fill-color: rgba(200, 203, 214, 0.85);
}

/* A font glyph in a flex/grid box inherits the parent line-height and sits
   off-centre. An SVG background layer centres exactly at any size. */
.xfin-account__trust li::before,
.xfin-pay__list li::before {
	content: "";
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4.3 4.3L19 7.2' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
		linear-gradient(135deg, var(--xfin-accent2), var(--xfin-accent));
	background-repeat: no-repeat, no-repeat;
	background-position: center, center;
	background-size: 12px 12px, cover;
}

.xfin-account__trust li::before { margin-top: 0; }

.xfin-pay__list li::before { margin-top: 1px; }

/* ---------- Payment page ---------- */

.xfin-pay {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	width: 100%;
	align-items: stretch;
}

.xfin-pay__summary,
.xfin-pay__panel {
	padding: 34px 30px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--xfin-border);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.06) inset,
		0 28px 64px rgba(0, 0, 0, 0.38);
	backdrop-filter: blur(18px);
}

.xfin-pay__summary { text-align: left; }

.xfin-pay__amount {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 22px 0 20px;
}

.xfin-pay__num {
	font-size: 52px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--xfin-heading);
	-webkit-text-fill-color: var(--xfin-heading);
}

.xfin-pay__per {
	font-size: 16px;
	font-weight: 600;
	color: var(--xfin-text);
	-webkit-text-fill-color: var(--xfin-text);
}

.xfin-pay__list {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.xfin-pay__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14.5px;
	line-height: 1.5;
	color: rgba(214, 217, 227, 0.9);
	-webkit-text-fill-color: rgba(214, 217, 227, 0.9);
}

.xfin-pay__note {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.09);
}

.xfin-pay__note strong {
	font-size: 14px;
	color: var(--xfin-heading);
	-webkit-text-fill-color: var(--xfin-heading);
}

.xfin-pay__note span {
	font-size: 13px;
	color: var(--xfin-text);
	-webkit-text-fill-color: var(--xfin-text);
}

.xfin-pay__panel { display: flex; flex-direction: column; }

.xfin-pay__badge {
	align-self: flex-start;
	margin-bottom: 16px;
	padding: 6px 13px;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #ffd9a8;
	-webkit-text-fill-color: #ffd9a8;
	background: rgba(222, 101, 14, 0.12);
	border: 1px solid rgba(222, 101, 14, 0.4);
}

.xfin-pay__form { display: flex; flex-direction: column; gap: 16px; }

.xfin-pay__discount {
	margin: 8px 0 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--xfin-accent2);
	-webkit-text-fill-color: var(--xfin-accent2);
}

.xfin-pay__was {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
	color: rgba(167, 170, 187, 0.7);
	-webkit-text-fill-color: rgba(167, 170, 187, 0.7);
	text-decoration: line-through;
}

.xfin-pay__now {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.xfin-pay__due-note {
	margin: 6px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--xfin-text);
	-webkit-text-fill-color: var(--xfin-text);
}

html[data-theme="light"] .xfin-pay__was {
	color: rgba(75, 81, 96, 0.65);
	-webkit-text-fill-color: rgba(75, 81, 96, 0.65);
}

.xfin-pay__promo {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.xfin-pay__promo-label {
	font-size: 13.5px;
	font-weight: 600;
	color: rgba(240, 241, 247, 0.86);
	-webkit-text-fill-color: rgba(240, 241, 247, 0.86);
}

.xfin-pay__promo-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.xfin-pay__promo-input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 14px;
	border-radius: 13px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	-webkit-text-fill-color: #fff;
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(255, 255, 255, 0.13);
	outline: none;
}

.xfin-pay__promo-input::placeholder {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
	color: rgba(167, 170, 187, 0.6);
}

.xfin-pay__promo-input:focus {
	border-color: rgba(222, 101, 14, 0.6);
	box-shadow: 0 0 0 4px rgba(222, 101, 14, 0.12);
	background: rgba(255, 255, 255, 0.07);
}

.xfin-pay__promo-apply {
	flex: 0 0 auto;
	min-height: 48px !important;
	padding: 0 18px !important;
}

.xfin-pay__promo-msg {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--xfin-text);
	-webkit-text-fill-color: var(--xfin-text);
}

.xfin-pay__promo-msg.is-ok {
	color: #7dcea0;
	-webkit-text-fill-color: #7dcea0;
}

.xfin-pay__promo-msg.is-error {
	color: #ff8f8f;
	-webkit-text-fill-color: #ff8f8f;
}

html[data-theme="light"] .xfin-pay__promo-label {
	color: #2a2e38;
	-webkit-text-fill-color: #2a2e38;
}

html[data-theme="light"] .xfin-pay__promo-input {
	color: #12141a;
	-webkit-text-fill-color: #12141a;
	background: #fff;
	border-color: rgba(20, 22, 28, 0.16);
}

html[data-theme="light"] .xfin-pay__promo-input::placeholder {
	color: rgba(75, 81, 96, 0.55);
}

html[data-theme="light"] .xfin-pay__promo-msg.is-ok {
	color: #1f7a4d;
	-webkit-text-fill-color: #1f7a4d;
}

html[data-theme="light"] .xfin-pay__promo-msg.is-error {
	color: #b12325;
	-webkit-text-fill-color: #b12325;
}

.xfin-pay__element {
	min-height: 220px;
	padding: 18px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.xfin-pay__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 180px;
	font-size: 14px;
	color: var(--xfin-text);
	-webkit-text-fill-color: var(--xfin-text);
}

.xfin-spinner {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-top-color: var(--xfin-accent2);
	animation: xfin-spin 0.7s linear infinite;
}

@keyframes xfin-spin { to { transform: rotate(360deg); } }

.xfin-pay__secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 2px 0 0;
	font-size: 12.5px;
	font-weight: 500;
	text-align: center;
	color: rgba(167, 170, 187, 0.85);
	-webkit-text-fill-color: rgba(167, 170, 187, 0.85);
}

.xfin-pay__notice {
	padding: 20px;
	border-radius: 16px;
	font-size: 14px;
	line-height: 1.6;
}

.xfin-pay__notice--warn {
	color: #ffd9a8;
	-webkit-text-fill-color: #ffd9a8;
	background: rgba(222, 101, 14, 0.1);
	border: 1px solid rgba(222, 101, 14, 0.35);
}

.xfin-pay__notice strong { display: block; margin-bottom: 6px; font-size: 15px; }

.xfin-pay__notice p { margin: 0 0 10px; }

.xfin-pay__notice-actions { margin: 14px 0 0 !important; }

/* ---------- Dashboard ---------- */

.xfin-dash__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin-bottom: 8px;
}

.xfin-dash__logout {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--xfin-text);
	-webkit-text-fill-color: var(--xfin-text);
	text-decoration: none;
}

.xfin-dash__logout:hover { color: #ffb46b; -webkit-text-fill-color: #ffb46b; }

.xfin-dash__head { width: 100%; text-align: left; }

.xfin-dash__warn {
	width: 100%;
	padding: 13px 16px;
	border-radius: 13px;
	font-size: 13.5px;
	font-weight: 600;
	color: #ffd9a8;
	-webkit-text-fill-color: #ffd9a8;
	background: rgba(222, 101, 14, 0.1);
	border: 1px solid rgba(222, 101, 14, 0.35);
}

.xfin-dash__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	width: 100%;
}

.xfin-dash__card {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 24px 22px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--xfin-border);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 20px 48px rgba(0, 0, 0, 0.3);
	text-align: left;
}

.xfin-dash__label {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(167, 170, 187, 0.9);
	-webkit-text-fill-color: rgba(167, 170, 187, 0.9);
}

.xfin-dash__value {
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--xfin-heading);
	-webkit-text-fill-color: var(--xfin-heading);
}

.xfin-dash__value span {
	font-size: 15px;
	font-weight: 600;
	color: var(--xfin-text);
	-webkit-text-fill-color: var(--xfin-text);
}

.xfin-dash__value--sm { font-size: 16px; font-weight: 700; word-break: break-all; }
.xfin-dash__value--phone { font-size: 22px; letter-spacing: -0.03em; }

.xfin-dash__badge {
	align-self: flex-start;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.xfin-dash__badge.is-active {
	color: #b6f0d0;
	-webkit-text-fill-color: #b6f0d0;
	background: rgba(34, 160, 98, 0.16);
	border: 1px solid rgba(34, 160, 98, 0.4);
}

.xfin-dash__badge.is-idle {
	color: #ffd9a8;
	-webkit-text-fill-color: #ffd9a8;
	background: rgba(222, 101, 14, 0.14);
	border: 1px solid rgba(222, 101, 14, 0.4);
}

.xfin-dash__hint {
	font-size: 12.5px;
	color: rgba(167, 170, 187, 0.85);
	-webkit-text-fill-color: rgba(167, 170, 187, 0.85);
}

.xfin-dash__panel {
	width: 100%;
	padding: 28px 26px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--xfin-border);
	text-align: left;
}

.xfin-dash__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.xfin-dash__panel-head h2 {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--xfin-heading);
	-webkit-text-fill-color: var(--xfin-heading);
}

.xfin-dash__soon {
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(167, 170, 187, 0.9);
	-webkit-text-fill-color: rgba(167, 170, 187, 0.9);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.xfin-dash__panel-copy {
	margin: 0 0 18px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--xfin-text);
	-webkit-text-fill-color: var(--xfin-text);
}

.xfin-dash__panel-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* ---------- Light mode ---------- */

html[data-theme="light"] body.sbg-account-page { background: #eceae7 !important; }

html[data-theme="light"] .xfin-account {
	--xfin-bg: #eceae7;
	--xfin-border: rgba(20, 22, 28, 0.1);
	--xfin-text: #4b5160;
	--xfin-heading: #12141a;
	background: #eceae7;
}

html[data-theme="light"] .xfin-account__aurora { opacity: 0.42; }
html[data-theme="light"] .xfin-account__orb { opacity: 0.16; }
html[data-theme="light"] .xfin-account__grid {
	background-image:
		linear-gradient(rgba(20, 22, 28, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(20, 22, 28, 0.035) 1px, transparent 1px);
}

html[data-theme="light"] .xfin-account__card,
html[data-theme="light"] .xfin-pay__summary,
html[data-theme="light"] .xfin-pay__panel,
html[data-theme="light"] .xfin-dash__card,
html[data-theme="light"] .xfin-dash__panel {
	background: rgba(255, 255, 255, 0.82);
	border-color: rgba(20, 22, 28, 0.1);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 22px 54px rgba(20, 22, 28, 0.08);
}

html[data-theme="light"] .xfin-account__eyebrow,
html[data-theme="light"] .xfin-pay__badge {
	color: #a8410c;
	-webkit-text-fill-color: #a8410c;
	background: rgba(222, 101, 14, 0.1);
}

html[data-theme="light"] .xfin-field label { color: #2a2e38; -webkit-text-fill-color: #2a2e38; }

html[data-theme="light"] .xfin-field input {
	color: #12141a;
	-webkit-text-fill-color: #12141a;
	background: #fff;
	border-color: rgba(20, 22, 28, 0.16);
}

html[data-theme="light"] .xfin-field input::placeholder { color: rgba(75, 81, 96, 0.55); }

html[data-theme="light"] .xfin-field input:-webkit-autofill,
html[data-theme="light"] .xfin-field input:-webkit-autofill:hover,
html[data-theme="light"] .xfin-field input:-webkit-autofill:focus,
html[data-theme="light"] .xfin-field input:-webkit-autofill:active {
	-webkit-text-fill-color: #12141a !important;
	-webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
	box-shadow: 0 0 0 1000px #ffffff inset !important;
	caret-color: #12141a;
}

html[data-theme="light"] body.sbg-account-page .xfin-account .xfin-field__toggle {
	color: rgba(75, 81, 96, 0.8);
	-webkit-text-fill-color: rgba(75, 81, 96, 0.8);
}

html[data-theme="light"] body.sbg-account-page .xfin-account .xfin-field__toggle:hover,
html[data-theme="light"] body.sbg-account-page .xfin-account .xfin-field__toggle:focus-visible {
	background: rgba(20, 22, 28, 0.06);
	color: #b12325;
	-webkit-text-fill-color: #b12325;
}

html[data-theme="light"] .xfin-account__switch { border-top-color: rgba(20, 22, 28, 0.1); }

html[data-theme="light"] .xfin-account__switch a,
html[data-theme="light"] .xfin-field__hint:hover,
html[data-theme="light"] .xfin-dash__logout:hover {
	color: #b12325;
	-webkit-text-fill-color: #b12325;
}

html[data-theme="light"] .xfin-account__trust li,
html[data-theme="light"] .xfin-account__switch,
html[data-theme="light"] .xfin-field__hint,
html[data-theme="light"] .xfin-form__fine,
html[data-theme="light"] .xfin-dash__hint,
html[data-theme="light"] .xfin-dash__panel-copy,
html[data-theme="light"] .xfin-pay__secure,
html[data-theme="light"] .xfin-dash__logout {
	color: #4b5160;
	-webkit-text-fill-color: #4b5160;
}

html[data-theme="light"] .xfin-pay__list li {
	color: #2a2e38;
	-webkit-text-fill-color: #2a2e38;
}

html[data-theme="light"] .xfin-pay__element {
	background: #fff;
	border-color: rgba(20, 22, 28, 0.14);
}

html[data-theme="light"] .xfin-pay__note {
	background: rgba(20, 22, 28, 0.04);
	border-color: rgba(20, 22, 28, 0.1);
}

html[data-theme="light"] .xfin-btn--ghost {
	color: #16181f;
	-webkit-text-fill-color: #16181f;
	background: rgba(20, 22, 28, 0.05);
	border-color: rgba(20, 22, 28, 0.2);
}

html[data-theme="light"] .xfin-btn--ghost:hover:not(:disabled) { background: #fff; }

html[data-theme="light"] .xfin-form__alert {
	color: #8b1e20;
	-webkit-text-fill-color: #8b1e20;
	background: rgba(177, 35, 37, 0.1);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.xfin-pay { grid-template-columns: 1fr; }
	.xfin-dash__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.xfin-account { padding: 34px 16px; }
	.xfin-account__card { padding: 30px 22px 24px; border-radius: 20px; }
	.xfin-pay__summary,
	.xfin-pay__panel { padding: 26px 20px; border-radius: 20px; }
	.xfin-account__title { font-size: 26px; }
	.xfin-pay__num { font-size: 42px; }
	.xfin-dash__value { font-size: 25px; }
	.xfin-dash__panel-actions { flex-direction: column; }
	.xfin-dash__panel-actions .xfin-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.xfin-account__aurora,
	.xfin-account__orb,
	.xfin-spinner { animation: none; }
	.xfin-account__shell { animation: none; }
}

/* =====================================================================
   Billing hub (dashboard)
   Everything below extends the dashboard into a full self-serve billing
   surface: saved cards, invoices, plan controls, and a styled modal.
   ===================================================================== */

.xfin-account--dash { align-items: flex-start; }

.xfin-dash__bar-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.xfin-dash__mode {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: 999px;
	color: rgba(167, 170, 187, 0.9);
	-webkit-text-fill-color: rgba(167, 170, 187, 0.9);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.xfin-dash__pill {
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.xfin-dash__pill.is-live {
	color: #b6f0d0;
	-webkit-text-fill-color: #b6f0d0;
	background: rgba(34, 160, 98, 0.16);
	border: 1px solid rgba(34, 160, 98, 0.4);
}

.xfin-dash__pill.is-idle {
	color: #ffd9a8;
	-webkit-text-fill-color: #ffd9a8;
	background: rgba(222, 101, 14, 0.14);
	border: 1px solid rgba(222, 101, 14, 0.4);
}

/* ---------- Banners / alerts ---------- */

.xfin-dash__banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
	padding: 18px 20px;
	border-radius: 16px;
	text-align: left;
}

.xfin-dash__banner div { display: flex; flex-direction: column; gap: 4px; }

.xfin-dash__banner strong { font-size: 15px; color: var(--xfin-heading); -webkit-text-fill-color: var(--xfin-heading); }
.xfin-dash__banner span { font-size: 13.5px; line-height: 1.5; color: var(--xfin-text); -webkit-text-fill-color: var(--xfin-text); }

.xfin-dash__banner--warn {
	background: rgba(222, 101, 14, 0.1);
	border: 1px solid rgba(222, 101, 14, 0.35);
}

.xfin-dash__alert {
	width: 100%;
	margin: 0 0 18px;
	padding: 13px 16px;
	border-radius: 13px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.55;
}

.xfin-dash__alert.is-ok {
	color: #b6f0d0;
	-webkit-text-fill-color: #b6f0d0;
	background: rgba(34, 160, 98, 0.12);
	border: 1px solid rgba(34, 160, 98, 0.35);
}

.xfin-dash__alert.is-error {
	color: #ffd4d4;
	-webkit-text-fill-color: #ffd4d4;
	background: rgba(177, 35, 37, 0.16);
	border: 1px solid rgba(177, 35, 37, 0.45);
}

/* ---------- Billing blocks ---------- */

.xfin-bill__block {
	padding: 22px 0 6px;
	border-top: 1px solid var(--xfin-border);
}

.xfin-bill__block:first-of-type { border-top: 0; padding-top: 6px; }

.xfin-bill__block-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 16px;
}

.xfin-bill__block-head h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--xfin-heading);
	-webkit-text-fill-color: var(--xfin-heading);
}

.xfin-bill__empty {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(167, 170, 187, 0.85);
	-webkit-text-fill-color: rgba(167, 170, 187, 0.85);
}

.xfin-bill__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 20px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--xfin-border);
}

.xfin-bill__row div { display: flex; flex-direction: column; gap: 4px; }
.xfin-bill__row strong { font-size: 14.5px; color: var(--xfin-heading); -webkit-text-fill-color: var(--xfin-heading); }
.xfin-bill__row span { font-size: 13.5px; line-height: 1.55; color: var(--xfin-text); -webkit-text-fill-color: var(--xfin-text); }

.xfin-bill__fine {
	margin: 14px 0 0;
	font-size: 12.5px;
	color: rgba(167, 170, 187, 0.8);
	-webkit-text-fill-color: rgba(167, 170, 187, 0.8);
}

.xfin-btn--sm {
	min-height: 42px;
	padding: 0 18px;
	font-size: 0.88rem;
	white-space: nowrap;
}

/* ---------- Saved cards ---------- */

.xfin-cards { display: flex; flex-direction: column; gap: 10px; }

.xfin-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--xfin-border);
	text-align: left;
}

.xfin-card.is-default {
	background: rgba(222, 101, 14, 0.07);
	border-color: rgba(222, 101, 14, 0.32);
}

.xfin-card__main { display: flex; align-items: center; gap: 14px; min-width: 0; }

.xfin-card__brand {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 58px;
	height: 34px;
	padding: 0 10px;
	border-radius: 8px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	-webkit-text-fill-color: #fff;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.xfin-card__nums { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.xfin-card__nums strong { font-size: 14.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--xfin-heading); -webkit-text-fill-color: var(--xfin-heading); white-space: nowrap; }
.xfin-card__nums span { font-size: 12.5px; color: rgba(167, 170, 187, 0.85); -webkit-text-fill-color: rgba(167, 170, 187, 0.85); }

.xfin-card__side { display: flex; align-items: center; gap: 12px; }

.xfin-card__tag {
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #ffd9a8;
	-webkit-text-fill-color: #ffd9a8;
	background: rgba(222, 101, 14, 0.16);
	border: 1px solid rgba(222, 101, 14, 0.4);
}

.xfin-card__link {
	background: none;
	border: 0;
	padding: 4px 2px;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	color: rgba(167, 170, 187, 0.95);
	-webkit-text-fill-color: rgba(167, 170, 187, 0.95);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.xfin-card__link:hover { color: #ffb46b; -webkit-text-fill-color: #ffb46b; }
.xfin-card__link.is-danger:hover { color: #ff9d9d; -webkit-text-fill-color: #ff9d9d; }
.xfin-card__link:disabled { opacity: 0.5; cursor: not-allowed; }

.xfin-card__warn {
	grid-column: 1 / -1;
	font-size: 12.5px;
	font-weight: 600;
	color: #ffd9a8;
	-webkit-text-fill-color: #ffd9a8;
}

/* ---------- Add card ---------- */

.xfin-addcard {
	margin-top: 12px;
	padding: 20px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--xfin-border);
}

.xfin-addcard__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.xfin-addcard__head strong { font-size: 14.5px; color: var(--xfin-heading); -webkit-text-fill-color: var(--xfin-heading); }

.xfin-addcard__close {
	background: none;
	border: 0;
	padding: 0 4px;
	font-size: 26px;
	line-height: 1;
	color: rgba(167, 170, 187, 0.9);
	-webkit-text-fill-color: rgba(167, 170, 187, 0.9);
	cursor: pointer;
}

.xfin-addcard__element {
	min-height: 56px;
	margin-bottom: 14px;
	padding: 14px;
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--xfin-border);
}

.xfin-addcard__element .xfin-pay__loading {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	color: var(--xfin-text);
	-webkit-text-fill-color: var(--xfin-text);
}

.xfin-addcard__secure {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 12px 0 0;
	font-size: 12px;
	color: rgba(167, 170, 187, 0.8);
	-webkit-text-fill-color: rgba(167, 170, 187, 0.8);
}

/* ---------- Invoices ---------- */

.xfin-invoices { display: flex; flex-direction: column; }

.xfin-invoices__loading {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 2px;
	font-size: 13.5px;
	color: var(--xfin-text);
	-webkit-text-fill-color: var(--xfin-text);
}

.xfin-invoice {
	display: grid;
	grid-template-columns: 1.1fr 1.5fr 0.9fr auto auto;
	align-items: center;
	gap: 14px;
	padding: 14px 4px;
	border-top: 1px solid var(--xfin-border);
	font-size: 13.5px;
}

.xfin-invoice:first-child { border-top: 0; }

.xfin-invoice__date { color: var(--xfin-heading); -webkit-text-fill-color: var(--xfin-heading); font-weight: 600; }
.xfin-invoice__num { color: rgba(167, 170, 187, 0.9); -webkit-text-fill-color: rgba(167, 170, 187, 0.9); font-variant-numeric: tabular-nums; }
.xfin-invoice__amount { color: var(--xfin-heading); -webkit-text-fill-color: var(--xfin-heading); font-weight: 700; font-variant-numeric: tabular-nums; }

.xfin-invoice__badge {
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.xfin-invoice__badge.is-paid {
	color: #b6f0d0;
	-webkit-text-fill-color: #b6f0d0;
	background: rgba(34, 160, 98, 0.16);
	border: 1px solid rgba(34, 160, 98, 0.38);
}

.xfin-invoice__badge.is-open {
	color: #ffd9a8;
	-webkit-text-fill-color: #ffd9a8;
	background: rgba(222, 101, 14, 0.16);
	border: 1px solid rgba(222, 101, 14, 0.4);
}

.xfin-invoice__badge.is-void {
	color: rgba(167, 170, 187, 0.9);
	-webkit-text-fill-color: rgba(167, 170, 187, 0.9);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.xfin-invoice__actions { display: flex; gap: 12px; justify-content: flex-end; }

.xfin-invoice__link {
	font-size: 12.5px;
	font-weight: 700;
	color: #ffb46b;
	-webkit-text-fill-color: #ffb46b;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.xfin-invoices__more { margin: 14px 0 0; }

/* ---------- Modal ---------- */

.xfin-modal {
	padding: 0;
	border: 0;
	background: transparent;
	max-width: min(440px, calc(100vw - 32px));
	width: 100%;
}

.xfin-modal::backdrop {
	background: rgba(3, 4, 6, 0.72);
	backdrop-filter: blur(3px);
}

.xfin-modal__box {
	padding: 26px 24px 22px;
	border-radius: 20px;
	background: #14161c;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
	font-family: "Manrope", system-ui, sans-serif;
	text-align: left;
}

.xfin-modal__title {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: #fff;
	-webkit-text-fill-color: #fff;
}

.xfin-modal__copy {
	margin: 0 0 22px;
	font-size: 14.5px;
	line-height: 1.65;
	color: #a7aabb;
	-webkit-text-fill-color: #a7aabb;
}

.xfin-modal__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Light mode ---------- */

html[data-theme="light"] .xfin-bill__row,
html[data-theme="light"] .xfin-card,
html[data-theme="light"] .xfin-addcard,
html[data-theme="light"] .xfin-addcard__element {
	background: rgba(255, 255, 255, 0.72);
	border-color: rgba(20, 22, 28, 0.1);
}

html[data-theme="light"] .xfin-card.is-default {
	background: rgba(222, 101, 14, 0.08);
	border-color: rgba(222, 101, 14, 0.28);
}

html[data-theme="light"] .xfin-card__brand {
	color: #12141a;
	-webkit-text-fill-color: #12141a;
	background: linear-gradient(135deg, rgba(20, 22, 28, 0.08), rgba(20, 22, 28, 0.03));
	border-color: rgba(20, 22, 28, 0.14);
}

html[data-theme="light"] .xfin-dash__mode {
	color: #4b5160;
	-webkit-text-fill-color: #4b5160;
	background: rgba(20, 22, 28, 0.05);
	border-color: rgba(20, 22, 28, 0.12);
}

html[data-theme="light"] .xfin-bill__empty,
html[data-theme="light"] .xfin-bill__fine,
html[data-theme="light"] .xfin-card__nums span,
html[data-theme="light"] .xfin-invoice__num,
html[data-theme="light"] .xfin-addcard__secure,
html[data-theme="light"] .xfin-invoices__loading,
html[data-theme="light"] .xfin-addcard__element .xfin-pay__loading {
	color: #4b5160;
	-webkit-text-fill-color: #4b5160;
}

html[data-theme="light"] .xfin-card__link { color: #4b5160; -webkit-text-fill-color: #4b5160; }
html[data-theme="light"] .xfin-card__link:hover { color: #a8410c; -webkit-text-fill-color: #a8410c; }
html[data-theme="light"] .xfin-card__link.is-danger:hover { color: #b12325; -webkit-text-fill-color: #b12325; }
html[data-theme="light"] .xfin-invoice__link { color: #a8410c; -webkit-text-fill-color: #a8410c; }
html[data-theme="light"] .xfin-addcard__close { color: #4b5160; -webkit-text-fill-color: #4b5160; }
html[data-theme="light"] .xfin-dash__banner--warn { background: rgba(222, 101, 14, 0.09); }

html[data-theme="light"] .xfin-modal__box {
	background: #fff;
	border-color: rgba(20, 22, 28, 0.12);
	box-shadow: 0 30px 80px rgba(20, 22, 28, 0.22);
}

html[data-theme="light"] .xfin-modal__title { color: #12141a; -webkit-text-fill-color: #12141a; }
html[data-theme="light"] .xfin-modal__copy { color: #4b5160; -webkit-text-fill-color: #4b5160; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
	.xfin-dash__banner { flex-direction: column; align-items: flex-start; }
	.xfin-bill__block-head { flex-direction: column; align-items: flex-start; }
	.xfin-bill__row { flex-direction: column; align-items: flex-start; }
	.xfin-bill__row .xfin-btn { width: 100%; }
	.xfin-card { grid-template-columns: 1fr; }
	.xfin-card__side { justify-content: flex-start; }

	.xfin-invoice {
		grid-template-columns: 1fr auto;
		gap: 6px 14px;
		padding: 16px 2px;
	}
	.xfin-invoice__num { font-size: 12px; }
	.xfin-invoice__amount { text-align: right; }
	.xfin-invoice__status { grid-column: 1; }
	.xfin-invoice__actions { grid-column: 2; }
}

/* Review follow-up steps (#131) */
.xfin-rf { display: flex; flex-direction: column; gap: 14px; }
.xfin-rf__field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.xfin-rf__field input,
.xfin-rf__field textarea {
	border: 1px solid rgba(20,22,28,0.14);
	border-radius: 12px;
	padding: 10px 12px;
	font: inherit;
	background: #fff;
}
.xfin-rf__step {
	border: 1px solid rgba(20,22,28,0.1);
	border-radius: 16px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: rgba(255,255,255,0.55);
}
.xfin-rf__step-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.xfin-rf__actions { display: flex; flex-wrap: wrap; gap: 10px; }
