/* Home front page — load after shell.css */

/* Home category cards — press feedback (shell omits .home-cat-card). */
body.fighoo-theme .home-cat-card:not(.is-locked) {
	transition: transform 150ms ease, opacity 150ms ease, box-shadow 150ms ease;
	-webkit-tap-highlight-color: transparent;
}

body.fighoo-theme .home-cat-card:not(.is-locked):active,
body.fighoo-theme .home-cat-card:not(.is-locked).is-pressed {
	transform: scale(0.96);
	opacity: 0.92;
	box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.25);
	transition: transform 150ms ease, opacity 150ms ease, box-shadow 150ms ease;
}

/* —— Home screen (mockup) —— */

body.fighoo-view-home {
	background: #f3f5f9;
	overflow: hidden;
	height: 100dvh;
	max-height: 100dvh;
	touch-action: auto;
	--fighoo-home-chrome-gap: 12px;
	--fighoo-home-feed-chrome-gap-bottom: 4px;
	--fighoo-home-topbar-fallback-h: var(--fighoo-shell-header-clearance);
	--fighoo-home-filters-fallback-h: 44px;
	--fighoo-home-feed-pad-top: calc(
		var(--fighoo-home-topbar-measured-h, var(--fighoo-home-topbar-fallback-h)) +
			var(--fighoo-home-filters-measured-h, var(--fighoo-home-filters-fallback-h)) +
			var(--fighoo-home-chrome-gap, 12px)
	);
	--fighoo-home-feed-pad-bottom: var(
		--fighoo-tabbar-measured-feed-pad-bottom,
		calc(
			var(--fighoo-tabbar-scroll-clearance, calc(var(--glass-tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px)) +
				var(--fighoo-home-feed-chrome-gap-bottom, 4px)
		)
	);
}

body.fighoo-view-home .fighoo-tab-stage {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	align-items: stretch;
	min-height: 0;
	height: 100%;
	max-height: 100dvh;
	overflow: hidden;
}

.site-main--home,
body.fighoo-view-home .site-main--home {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	align-items: stretch;
	width: 100%;
	max-width: var(--fighoo-shell-max-w);
	margin-inline: auto;
	box-sizing: border-box;
	padding-top: 0;
	padding-bottom: 0;
	padding-left: 0;
	padding-right: 0;
	min-height: 0;
	height: auto;
	max-height: none;
	overflow: hidden;
	position: relative;
	z-index: 0;
}

/* Fixed header lane — same metrics as .glass-header on other tabs. */
body.fighoo-view-home .home-topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	max-width: none;
	margin: 0;
	transform: none;
	z-index: 1000;
	flex-shrink: 0;
	padding: calc(var(--fighoo-header-pad-block) + env(safe-area-inset-top, 0px)) 0
		var(--fighoo-header-pad-block);
	box-sizing: border-box;
	background: transparent;
	pointer-events: none;
}

body.fighoo-view-home .home-topbar .glass-header__slot {
	pointer-events: auto;
}

.home-topbar {
	flex-shrink: 0;
	width: calc(100% + 32px);
	margin-inline: -16px;
	padding: calc(var(--fighoo-header-pad-block) + env(safe-area-inset-top, 0px)) 0
		var(--fighoo-header-pad-block);
	box-sizing: border-box;
}

.home-topbar .glass-header__slot {
	padding-left: 16px;
	padding-right: 16px;
}

.home-topbar__logo-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.95rem;
	color: #fff;
}

.home-topbar .glass-header__pill--home {
	align-items: center;
	overflow: hidden;
	min-height: var(--fighoo-header-pill-min-h);
	max-height: var(--fighoo-header-pill-min-h);
}

body.fighoo-view-home .home-topbar .glass-header__pill--home {
	min-height: var(--fighoo-header-pill-min-h);
	max-height: var(--fighoo-header-pill-min-h);
}

.home-topbar__brand {
	flex: 0 0 auto;
	min-width: 0;
}

.home-topbar__aside {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	align-items: center;
	justify-content: flex-end;
}

.home-topbar__account-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-shrink: 0;
	max-width: 100%;
	min-width: 0;
}

.home-topbar__account-actions .home-topbar__wallet {
	align-self: center;
	margin-top: 0;
}

.home-topbar__wallet {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-shrink: 0;
	min-height: 38px;
	padding: 0 10px 0 8px;
	border-radius: 9999px;
	border: 1px solid rgba(22, 101, 52, 0.2);
	background: rgba(255, 255, 255, 0.78);
	color: #14532d;
	box-shadow:
		0 2px 12px rgba(15, 23, 42, 0.06),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.home-topbar__wallet--icon-only {
	width: 38px;
	height: 38px;
	min-height: 38px;
	padding: 0;
}

.home-topbar__wallet--icon-only .home-topbar__wallet-icon svg {
	display: block;
}

.home-topbar__wallet-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.home-topbar__wallet-balance {
	font-size: 0.68rem;
	font-weight: 700;
	white-space: nowrap;
	max-width: 5.5rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

.home-wallet-modal__lead {
	margin: 0 0 12px;
	font-size: 0.85rem;
	line-height: 1.55;
	color: rgba(15, 23, 42, 0.72);
}

.home-wallet-modal__pending {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(234, 179, 8, 0.35);
	background: rgba(254, 243, 199, 0.55);
}

.home-wallet-modal__pending-text {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.5;
	color: #854d0e;
}

.home-wallet-modal__balance {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	padding: 16px 14px;
	margin-bottom: 12px;
	border-radius: 16px;
	background: #ffffff;
	border: var(--wallet-card-border-width, 1.5px) solid var(--wallet-card-border, rgba(15, 23, 42, 0.24));
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 2px 10px rgba(15, 23, 42, 0.08);
}

.home-wallet-modal__balance-row {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	text-align: center;
}

.home-wallet-modal__balance-label,
.home-wallet-modal__balance-value {
	align-self: center;
	text-align: center;
	width: 100%;
	margin-inline-start: 0;
}

.home-wallet-modal__balance-sub {
	align-self: center;
	text-align: center;
}

.home-wallet-modal__balance-label {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #1e293b;
	letter-spacing: 0.01em;
}

.home-wallet-modal__balance-value {
	font-size: 1.625rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.home-wallet-modal__balance-sub {
	margin: 6px 0 0;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.55;
	color: #334155;
	text-align: center;
}

.home-wallet-modal__balance-withdraw {
	width: 100%;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--wallet-inner-border);
}

.home-wallet-modal__withdraw-actions[hidden] {
	display: none !important;
}

.home-wallet-modal__withdraw-flow {
	width: 100%;
	margin-top: 4px;
}

.home-wallet-withdraw-sheet {
	padding: 14px 12px 12px;
	border-radius: 16px;
	background: linear-gradient(165deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.92) 100%);
	border: 1px solid rgba(148, 163, 184, 0.28);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.home-wallet-modal__withdraw-flow[hidden] {
	display: none !important;
}

.home-wallet-modal__balance .home-wallet-withdraw-panel__title {
	color: #0f172a;
	font-size: 1.0625rem;
	font-weight: 800;
}

.home-wallet-modal__balance .home-wallet-withdraw-panel__lead,
.home-wallet-modal__balance .home-wallet-withdraw-panel__subhead {
	color: #1e293b;
	font-weight: 700;
}

.home-wallet-modal__balance .home-wallet-withdraw-panel__lead {
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.home-wallet-modal__balance .home-wallet-withdraw-panel__subhead {
	font-size: 0.9375rem;
}

.home-wallet-modal__balance .home-wallet-withdraw-dl__row {
	font-size: 0.9375rem;
	line-height: 1.45;
}

.home-wallet-modal__balance .home-wallet-withdraw-dl__row dt {
	color: #334155;
	font-weight: 600;
}

.home-wallet-modal__balance .home-wallet-withdraw-dl__row dd {
	color: #0f172a;
	font-weight: 700;
}

.home-wallet-modal__balance .home-wallet-withdraw-dl__row--total dd {
	color: #15803d;
	font-size: 1.0625rem;
}

.home-wallet-modal__balance .home-wallet-withdraw-agree {
	color: #0f172a;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.55;
}

.home-wallet-modal__balance .home-wallet-withdraw-panel__cancel,
.home-wallet-modal__balance .home-wallet-withdraw-panel__done {
	color: inherit;
	font-weight: 700;
	font-size: 0.9375rem;
}

.home-wallet-modal__balance .home-wallet-withdraw-panel__submit {
	font-size: 0.9375rem;
	font-weight: 700;
}

.home-wallet-modal__balance .home-wallet-modal__earn-withdraw-hint {
	color: #1e293b;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.55;
}

.home-wallet-modal__balance .home-wallet-modal__earn-tab-ref,
.home-wallet-modal__balance .home-wallet-modal__earn-tab-ref--main {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.5;
}

.home-wallet-modal__balance .home-wallet-modal__earn-pending-text {
	color: #1e3a8a;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.55;
}

.home-wallet-modal__balance .home-wallet-withdraw-success__badge {
	font-size: 0.9375rem;
	font-weight: 800;
}

.home-wallet-modal__balance .home-wallet-withdraw-success__message {
	color: #334155;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.55;
}

.home-wallet-modal__balance .home-wallet-withdraw-panel__edit-bank {
	font-size: 0.875rem;
	font-weight: 600;
}

.home-wallet-modal__balance .home-wallet-withdraw-panel__error {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.5;
}

.home-wallet-modal__balance .home-wallet-modal__withdraw {
	font-size: 0.9375rem;
	font-weight: 700;
}

.home-wallet-modal__earn-tab-ref--main {
	margin: 8px 0 0;
	text-align: center;
	font-size: 0.72rem;
}

.home-wallet-modal {
	position: relative;
	--wallet-card-border: rgba(15, 23, 42, 0.24);
	--wallet-card-border-width: 1.5px;
	--wallet-inner-border: rgba(15, 23, 42, 0.16);
}

.home-wallet-modal__withdraw--blocked {
	opacity: 0.7;
}

/* Primary green CTA (charge, withdraw request, confirm submit). */
.home-wallet-modal__wallet-cta-green,
.home-wallet-modal .home-wallet-modal__wallet-cta-green.glass-btn,
.home-wallet-modal .home-wallet-modal__withdraw.glass-btn {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 14px 20px;
	border: 0;
	border-radius: 14px;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.25;
	background: linear-gradient(135deg, #047857 0%, #059669 38%, #10b981 100%);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.22) inset,
		0 8px 22px rgba(5, 150, 105, 0.32);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	transition:
		transform 0.14s ease,
		box-shadow 0.14s ease,
		filter 0.14s ease,
		opacity 0.14s ease;
}

.home-wallet-modal .home-wallet-modal__wallet-cta-green.glass-btn:focus,
.home-wallet-modal .home-wallet-modal__withdraw.glass-btn:focus {
	outline: none;
}

.home-wallet-modal .home-wallet-modal__wallet-cta-green.glass-btn:focus-visible,
.home-wallet-modal .home-wallet-modal__withdraw.glass-btn:focus-visible {
	outline: 2px solid #10b981;
	outline-offset: 3px;
}

.home-wallet-modal .home-wallet-modal__wallet-cta-green.glass-btn:not(:disabled):hover,
.home-wallet-modal__wallet-cta-green:not(:disabled):hover,
.home-wallet-modal .home-wallet-modal__withdraw.glass-btn:not(:disabled):hover {
	filter: brightness(1.06);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.28) inset,
		0 10px 26px rgba(5, 150, 105, 0.38);
}

body.fighoo-theme .home-wallet-modal .home-wallet-modal__wallet-cta-green.glass-btn:not(:disabled):active,
body.fighoo-theme .home-wallet-modal .home-wallet-modal__wallet-cta-green.glass-btn:not(:disabled).is-pressed,
body.fighoo-theme .home-wallet-modal .home-wallet-modal__withdraw.glass-btn:not(:disabled):active,
body.fighoo-theme .home-wallet-modal .home-wallet-modal__withdraw.glass-btn:not(:disabled).is-pressed,
body.fighoo-theme .home-wallet-modal__wallet-cta-green:not(:disabled):active {
	transform: scale(0.985);
	opacity: 1;
	filter: none;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.15) inset,
		0 4px 14px rgba(5, 150, 105, 0.28);
}

.home-wallet-modal .home-wallet-modal__wallet-cta-green.glass-btn:disabled,
.home-wallet-modal__wallet-cta-green:disabled,
.home-wallet-modal .home-wallet-modal__withdraw.glass-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	filter: grayscale(0.15);
}

.home-wallet-modal__earn-withdraw-hint.is-flash {
	color: #b91c1c;
	font-weight: 600;
}

.home-wallet-withdraw-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.home-wallet-withdraw-panel__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 800;
	color: #1e3a8a;
}

.home-wallet-withdraw-panel__close {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.06);
	cursor: pointer;
}

.home-wallet-withdraw-panel__lead {
	margin: 0 0 10px;
	font-size: 0.74rem;
	line-height: 1.5;
	color: rgba(30, 58, 138, 0.85);
}

.home-wallet-withdraw-panel__subhead {
	margin: 12px 0 6px;
	font-size: 0.78rem;
	font-weight: 700;
	color: #1e3a8a;
}

.home-wallet-withdraw-dl {
	margin: 0 0 8px;
}

.home-wallet-withdraw-dl__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
	font-size: 0.76rem;
}

.home-wallet-withdraw-dl__row dt {
	margin: 0;
	color: rgba(51, 65, 85, 0.85);
}

.home-wallet-withdraw-dl__row dd {
	margin: 0;
	font-weight: 700;
	color: #0f172a;
	text-align: left;
}

.home-wallet-withdraw-dl__row--total dd {
	color: #1d4ed8;
	font-size: 0.85rem;
}

.home-wallet-withdraw-panel__edit-bank {
	margin: 6px 0 10px;
	font-size: 0.72rem;
	text-align: center;
}

.home-wallet-withdraw-panel__bank-lead {
	margin: 0 0 8px;
	font-size: 0.72rem;
	line-height: 1.45;
	opacity: 0.9;
}

.home-wallet-withdraw-pick {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 10px;
	position: relative;
	z-index: 1;
}

.home-wallet-withdraw-bank-auto {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1.5px solid rgba(34, 197, 94, 0.35);
	background: rgba(240, 253, 244, 0.96);
}

.home-wallet-withdraw-bank-auto__row {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.home-wallet-withdraw-bank-auto__label {
	font-size: 0.68rem;
	font-weight: 700;
	color: #15803d;
	text-transform: none;
}

.home-wallet-withdraw-bank-auto__card {
	font-size: 0.78rem;
	font-weight: 700;
	color: #0f172a;
}

.home-wallet-withdraw-bank-auto__name {
	font-size: 0.72rem;
	font-weight: 600;
	color: #64748b;
	word-break: break-word;
}

.home-wallet-withdraw-bank-auto__change {
	align-self: flex-start;
	margin-top: 2px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: rgba(255, 255, 255, 0.92);
	font-size: 0.72rem;
	font-weight: 700;
	color: #0f172a;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.home-wallet-withdraw-bank-auto__change:active {
	opacity: 0.88;
}

.home-wallet-withdraw-bank-pick-full {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.home-wallet-settle-pill {
	display: block;
	position: relative;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.home-wallet-settle-pill input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

.home-wallet-settle-pill input:focus {
	outline: none;
}

.home-wallet-settle-pill input:focus-visible + .home-wallet-settle-pill__inner {
	outline: 2px solid #16a34a;
	outline-offset: 2px;
}

.home-wallet-settle-pill__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1.5px solid rgba(15, 23, 42, 0.1);
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	pointer-events: none;
}

.home-wallet-settle-pill input:checked + .home-wallet-settle-pill__inner {
	border-color: rgba(34, 197, 94, 0.55);
	background: rgba(240, 253, 244, 0.98);
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.home-wallet-settle-pill__card {
	font-size: 0.78rem;
	font-weight: 700;
	color: #0f172a;
}

.home-wallet-settle-pill__name {
	font-size: 0.72rem;
	font-weight: 600;
	color: #64748b;
}

.home-wallet-withdraw-agree {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 10px 0;
	font-size: 0.76rem;
	line-height: 1.45;
	cursor: pointer;
}

.home-wallet-withdraw-panel__error {
	margin: 0 0 8px;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(239, 68, 68, 0.1);
	color: #991b1b;
	font-size: 0.74rem;
}

.home-wallet-withdraw-panel__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.home-wallet-withdraw-panel__submit {
	width: 100%;
}

.home-wallet-withdraw-panel__cancel,
.home-wallet-withdraw-panel__done {
	width: 100%;
	padding: 8px;
	border: 0;
	background: transparent;
	color: rgba(30, 58, 138, 0.85);
	font-size: 0.78rem;
	cursor: pointer;
}

.home-wallet-withdraw-success__badge {
	margin: 0 0 8px;
	font-size: 0.88rem;
	font-weight: 800;
	color: #15803d;
}

.home-wallet-withdraw-success__message {
	margin: 0 0 10px;
	font-size: 0.74rem;
	line-height: 1.5;
	color: rgba(30, 58, 138, 0.88);
}

.home-wallet-modal__balance .home-wallet-modal__parts {
	margin: 8px 0 0;
	background: #f8fafc;
	border: 1px solid var(--wallet-inner-border);
}

.home-wallet-modal__balance .home-wallet-modal__parts li {
	color: #334155;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
}

.home-wallet-modal__balance .home-wallet-modal__parts li span:last-child {
	font-weight: 800;
	color: #0f172a;
	font-size: 0.9375rem;
}

.home-wallet-modal__history-drawer--balance {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--wallet-inner-border);
}

.home-wallet-modal__history-drawer--balance .home-wallet-modal__history-drawer-summary {
	color: #0f172a;
	font-size: 0.9375rem;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.home-wallet-modal__history-drawer--balance .home-wallet-modal__history-drawer-summary::after {
	border-inline-end-color: rgba(15, 23, 42, 0.55);
	border-block-end-color: rgba(15, 23, 42, 0.55);
}

.home-wallet-modal__history-drawer--payout {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed var(--wallet-inner-border);
}

.home-wallet-modal__history--in-balance {
	margin: 8px 0 0;
}

.home-wallet-modal__history--in-balance .home-wallet-modal__history-list {
	max-height: 10rem;
}

.home-wallet-modal__history--in-balance .home-wallet-modal__history-item {
	background: #f8fafc;
}

.home-wallet-modal__invite-note {
	margin: 0 0 10px;
	font-size: 0.76rem;
	line-height: 1.5;
	color: rgba(180, 83, 9, 0.95);
}

.home-wallet-modal__parts {
	list-style: none;
	margin: 8px 0 0;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(15, 23, 42, 0.04);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.home-wallet-modal__parts li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	color: rgba(15, 23, 42, 0.78);
}

.home-wallet-modal__details-inner {
	margin-top: 8px;
}

.home-wallet-modal__earn-stack--in-details {
	margin: 12px 0 0;
	gap: 8px;
}

.home-wallet-modal__balance .home-wallet-modal__earn-stack--in-details .home-wallet-modal__earn-card {
	margin: 0;
}

.home-wallet-modal__earn-stack {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 14px;
}

.home-wallet-modal__earn-card {
	margin: 0;
	padding: 12px;
	border-radius: 14px;
}

.home-wallet-modal__earn-card--channel {
	border: var(--wallet-card-border-width, 1.5px) solid rgba(180, 83, 9, 0.42);
	background: rgba(255, 251, 235, 0.85);
}

.home-wallet-modal__earn-card--channel .home-wallet-modal__earn-card-title {
	color: #92400e;
}

.home-wallet-modal__earn-card--channel .home-wallet-modal__earn-card-hint {
	color: rgba(146, 64, 14, 0.78);
}

.home-wallet-modal__earn-card--channel .home-wallet-modal__earn-card-balance {
	color: #b45309;
}

.home-wallet-modal__history-drawer {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(180, 83, 9, 0.2);
	font-size: 0.82rem;
}

.home-wallet-modal__history-drawer-summary {
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	color: #92400e;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.home-wallet-modal__history-drawer-summary::-webkit-details-marker {
	display: none;
}

.home-wallet-modal__history-drawer-summary::after {
	content: '';
	width: 0.45rem;
	height: 0.45rem;
	border-inline-end: 2px solid rgba(146, 64, 14, 0.65);
	border-block-end: 2px solid rgba(146, 64, 14, 0.65);
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	flex-shrink: 0;
}

.home-wallet-modal__history-drawer[open] .home-wallet-modal__history-drawer-summary::after {
	transform: rotate(-135deg);
}

.home-wallet-modal__history--in-channel {
	margin: 8px 0 0;
}

.home-wallet-modal__history--in-channel .home-wallet-modal__history-list {
	max-height: 9.5rem;
}

.home-wallet-modal__history--in-channel .home-wallet-modal__history-item {
	background: rgba(255, 255, 255, 0.55);
}

.home-wallet-modal__history-drawer--channel-secondary {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed rgba(180, 83, 9, 0.22);
}

.home-wallet-modal__history-drawer--topup {
	margin-top: 12px;
	padding-top: 0;
	border-top: none;
}

.home-wallet-modal__history-drawer--topup .home-wallet-modal__history-drawer-summary {
	color: rgba(15, 23, 42, 0.78);
}

.home-wallet-modal__history-drawer--topup .home-wallet-modal__history-drawer-summary::after {
	border-color: rgba(15, 23, 42, 0.45);
}

.home-wallet-modal__history--topup .home-wallet-modal__history-list {
	max-height: 9rem;
}

.home-wallet-modal__earn-card--referral {
	border: var(--wallet-card-border-width, 1.5px) solid rgba(59, 130, 246, 0.4);
	background: rgba(239, 246, 255, 0.72);
}

.home-wallet-modal__earn-card--referral .home-wallet-modal__earn-card-title {
	color: #1e3a8a;
}

.home-wallet-modal__earn-card--referral .home-wallet-modal__earn-card-hint {
	color: rgba(30, 58, 138, 0.78);
}

.home-wallet-modal__earn-card--referral .home-wallet-modal__earn-card-balance {
	color: #1d4ed8;
}

.home-wallet-modal__history-drawer--referral {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(59, 130, 246, 0.22);
	font-size: 0.82rem;
}

.home-wallet-modal__history-drawer--referral .home-wallet-modal__history-drawer-summary {
	color: #1e3a8a;
}

.home-wallet-modal__history-drawer--referral .home-wallet-modal__history-drawer-summary::after {
	border-color: rgba(30, 58, 138, 0.55);
}

.home-wallet-modal__history-drawer--referral-secondary {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed rgba(59, 130, 246, 0.2);
}

.home-wallet-modal__history--in-referral {
	margin: 8px 0 0;
}

.home-wallet-modal__history--in-referral .home-wallet-modal__history-list {
	max-height: 9.5rem;
}

.home-wallet-modal__history--in-referral .home-wallet-modal__history-item {
	background: rgba(255, 255, 255, 0.55);
}

.home-wallet-modal__earn-tab-ref {
	margin: 10px 0 0;
	font-size: 0.72rem;
	line-height: 1.45;
}

.home-wallet-modal__earn-tab-ref a {
	color: #1d4ed8;
	font-weight: 600;
	text-decoration: none;
}

.home-wallet-modal__earn-tab-ref a:hover {
	text-decoration: underline;
}

.home-wallet-modal__earn-pending {
	margin: 0 0 8px;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(59, 130, 246, 0.1);
	border: 1px solid rgba(59, 130, 246, 0.22);
}

.home-wallet-modal__earn-pending-text {
	margin: 0;
	font-size: 0.76rem;
	line-height: 1.5;
	color: #1e3a8a;
}

.home-wallet-modal__earn-withdraw-hint {
	margin: 0 0 8px;
	font-size: 0.72rem;
	line-height: 1.45;
	color: rgba(21, 128, 61, 0.82);
}

.home-wallet-modal__withdraw {
	width: 100%;
	margin: 0 0 8px;
}

.home-wallet-modal__earn-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.home-wallet-modal__earn-card-title {
	margin: 0 0 4px;
	font-size: 0.82rem;
	font-weight: 700;
}

.home-wallet-modal__earn-card-hint {
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.45;
}

.home-wallet-modal__earn-card-balance {
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}

.home-wallet-modal__history {
	margin-bottom: 14px;
}

.home-wallet-modal__history-title {
	margin: 0 0 8px;
	font-size: 0.85rem;
	font-weight: 700;
}

.home-wallet-modal__history-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 11rem;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.home-wallet-modal__history-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.04);
	font-size: 0.78rem;
}

.home-wallet-modal__history-item--credit {
	border-inline-start: 3px solid rgba(22, 163, 74, 0.65);
}

.home-wallet-modal__history-item--debit {
	border-inline-start: 3px solid rgba(220, 38, 38, 0.45);
}

.home-wallet-modal__history-meta {
	color: rgba(15, 23, 42, 0.55);
	font-size: 0.72rem;
}

.home-wallet-modal__history-empty {
	margin: 0;
	font-size: 0.78rem;
	color: rgba(15, 23, 42, 0.5);
}

.home-wallet-modal__history-more {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: rgba(255, 255, 255, 0.85);
	color: rgba(15, 23, 42, 0.78);
	font-size: 0.78rem;
	cursor: pointer;
}

.home-wallet-modal__history-more:disabled {
	opacity: 0.6;
	cursor: wait;
}

.home-wallet-modal__earn-note {
	margin: 0 0 16px;
	font-size: 0.78rem;
	line-height: 1.55;
	color: rgba(15, 23, 42, 0.62);
}

.home-wallet-modal__earn-note a {
	color: inherit;
	font-weight: 700;
}

.home-wallet-modal__topup {
	margin-top: 4px;
}

.home-wallet-modal__topup-card {
	padding: 14px 14px 12px;
	margin-bottom: 10px;
	border-radius: 16px;
	background: #ffffff;
	border: var(--wallet-card-border-width) solid var(--wallet-card-border);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 2px 10px rgba(15, 23, 42, 0.08);
}

.home-wallet-modal__topup-card .home-wallet-modal__field {
	margin-bottom: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #334155;
}

.home-wallet-modal__topup-card .home-wallet-modal__input {
	background: #f8fafc;
	border-color: rgba(15, 23, 42, 0.1);
}

.home-wallet-modal__topup-card .home-wallet-modal__amount-words {
	margin: 0 0 8px;
}

.home-wallet-modal__topup-card .home-wallet-modal__min {
	margin: 0 0 12px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #64748b;
}

.home-wallet-modal__topup-card .home-wallet-modal__charge {
	margin: 0 0 4px;
}

.home-wallet-modal__topup-card .home-wallet-modal__history-drawer--topup {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--wallet-inner-border);
}

.home-wallet-modal__topup-card .home-wallet-modal__history-drawer--topup .home-wallet-modal__history-drawer-summary {
	color: #0f172a;
	font-size: 0.875rem;
	font-weight: 700;
}

.home-wallet-modal__topup-card .home-wallet-modal__history--topup .home-wallet-modal__history-item {
	background: #f8fafc;
}

.home-wallet-modal__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 8px;
	font-size: 0.82rem;
}

.home-wallet-modal__input {
	width: 100%;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	font-size: 1rem;
}

.home-wallet-modal__input--topup-amount {
	font-weight: 700;
	letter-spacing: 0.02em;
}

.home-wallet-modal__amount-words {
	margin: -2px 0 10px;
	min-height: 1.35em;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.55;
	color: #334155;
}

.home-wallet-modal__amount-words:empty {
	display: none;
}

.home-wallet-modal__min {
	margin: 0 0 12px;
	font-size: 0.75rem;
	color: rgba(15, 23, 42, 0.55);
}

.home-wallet-modal__charge {
	display: block;
	width: 100%;
	margin: 6px 0 14px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.home-wallet-modal__charge:focus {
	outline: none;
}

.home-wallet-modal__charge:focus-visible .home-wallet-modal__charge-inner {
	outline: 2px solid #10b981;
	outline-offset: 3px;
}

.home-wallet-modal__charge-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	padding: 14px 20px;
	border-radius: 14px;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	background: linear-gradient(135deg, #047857 0%, #059669 38%, #10b981 100%);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.22) inset,
		0 8px 22px rgba(5, 150, 105, 0.32);
	transition:
		transform 0.14s ease,
		box-shadow 0.14s ease,
		filter 0.14s ease;
}

.home-wallet-modal__charge-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.18);
	flex-shrink: 0;
}

.home-wallet-modal__charge-icon svg {
	display: block;
}

.home-wallet-modal__charge-label {
	line-height: 1.25;
}

.home-wallet-modal__charge:not(:disabled):hover .home-wallet-modal__charge-inner {
	filter: brightness(1.06);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.28) inset,
		0 10px 26px rgba(5, 150, 105, 0.38);
}

.home-wallet-modal__charge:not(:disabled):active .home-wallet-modal__charge-inner {
	transform: scale(0.985);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.15) inset,
		0 4px 14px rgba(5, 150, 105, 0.28);
}

.home-wallet-modal__charge:disabled {
	cursor: not-allowed;
}

.home-wallet-modal__charge:disabled .home-wallet-modal__charge-inner {
	opacity: 0.55;
	filter: grayscale(0.15);
	background: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 100%);
	color: rgba(255, 255, 255, 0.92);
	box-shadow: none;
	transform: none;
}

.home-wallet-modal__pay:not([hidden]) {
	margin-top: 8px;
}

.home-topbar__logout-wrap {
	display: flex;
	flex-shrink: 0;
	min-width: 0;
	align-items: center;
	justify-content: center;
}

.home-topbar__logout-wrap--stacked {
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.home-topbar__logout-wrap--stacked .home-topbar__account-phone {
	order: 0;
	max-width: 5rem;
}

.home-topbar__logout-wrap .home-topbar__account-phone {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	font-size: clamp(0.52rem, 2vw, 0.58rem);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0;
	color: rgba(127, 29, 29, 0.58);
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.home-topbar__logout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-height: 38px;
	padding: 0 14px;
	border-radius: 9999px;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	white-space: nowrap;
	color: #7f1d1d;
	border: 1px solid rgba(198, 40, 40, 0.22);
	background: rgba(255, 255, 255, 0.72);
	box-shadow:
		0 2px 12px rgba(15, 23, 42, 0.06),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	-webkit-backdrop-filter: blur(14px) saturate(1.25);
	backdrop-filter: blur(14px) saturate(1.25);
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.home-topbar__logout--text {
	width: auto;
	min-width: 3.25rem;
	height: 38px;
	min-height: 38px;
	box-sizing: border-box;
}

.home-topbar__logout-text {
	display: block;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.home-topbar__logout--account {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 42px;
	padding: 5px 10px 6px;
	font-size: clamp(0.68rem, 2.9vw, 0.75rem);
}

.home-topbar__logout--account .home-topbar__logout-text {
	line-height: 1.2;
}

.home-topbar__logout:hover {
	background: rgba(255, 255, 255, 0.92);
	border-color: rgba(198, 40, 40, 0.35);
}

.home-topbar__logout:active,
.home-topbar__logout.is-pressed {
	transform: scale(0.97);
}

.home-topbar__logout--login {
	color: #fff;
	background: linear-gradient(145deg, #e53935, var(--color-primary, #c62828));
	border-color: rgba(198, 40, 40, 0.45);
	box-shadow:
		0 3px 14px rgba(198, 40, 40, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.home-topbar__logout--login:hover {
	background: linear-gradient(145deg, #ef5350, #b71c1c);
	border-color: rgba(183, 28, 28, 0.5);
}

body.fighoo-view-home .home-location {
	position: fixed;
	top: var(--fighoo-home-topbar-measured-h, var(--fighoo-home-topbar-fallback-h));
	left: 0;
	right: 0;
	margin-inline: auto;
	transform: none;
	z-index: 990;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: var(--fighoo-shell-max-w, 440px);
	box-sizing: border-box;
	padding-inline: 16px;
	margin-bottom: 0;
	background: transparent;
	pointer-events: none;
}

body.fighoo-view-home .home-location .home-location__trigger {
	position: relative;
	z-index: 1;
	pointer-events: auto;
}

.home-location {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	flex-shrink: 0;
	margin-bottom: 12px;
}

.home-screen {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	align-items: stretch;
	width: 100%;
	min-height: 0;
	overflow: hidden;
	position: relative;
	z-index: 0;
}

.home-cat-scroll {
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	position: relative;
	z-index: 1;
	overflow-x: auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-y: contain;
	touch-action: pan-y;
	box-sizing: border-box;
	padding-top: var(--fighoo-home-feed-pad-top);
	padding-bottom: var(--fighoo-home-feed-pad-bottom);
	padding-inline: 16px;
	scroll-padding-top: var(--fighoo-home-feed-pad-top);
	scroll-padding-bottom: var(--fighoo-home-feed-pad-bottom);
	scrollbar-width: none;
	-ms-overflow-style: none;
}

body.fighoo-view-home .home-cat-grid,
body.fighoo-view-home .home-cat-card {
	position: relative;
	z-index: 0;
}

.home-cat-scroll::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

body.fighoo-view-home .home-cat-grid .home-cat-card:last-child {
	scroll-margin-bottom: var(--fighoo-home-feed-pad-bottom);
}
.home-cat-grid {
	--home-cat-gap: 10px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--home-cat-gap);
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
}

.home-cat-card {
	box-sizing: border-box;
	width: auto;
	max-width: none;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 14px 8px 10px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 3px 14px rgba(15, 23, 42, 0.06);
	height: 150px;
	min-height: 150px;
	max-height: 150px;
}

.home-cat-card.js-home-cat-card {
	cursor: pointer;
	border: none;
	font: inherit;
	text-align: inherit;
	-webkit-tap-highlight-color: rgba(198, 40, 40, 0.12);
	touch-action: manipulation;
	appearance: none;
	-webkit-appearance: none;
	color: inherit;
}

.home-cat-card.js-home-cat-card:focus {
	outline: none;
}

.home-cat-card.js-home-cat-card:focus-visible {
	outline: 2px solid #1a1d21;
	outline-offset: 2px;
}

.home-cat-card.js-home-cat-card.is-locked {
	cursor: not-allowed;
	opacity: 0.72;
}

.home-cat-card__icon-stack {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 8px;
	flex-shrink: 0;
}

.home-cat-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	color: #c62828;
	background: transparent;
	border: none;
	box-shadow: none;
	flex-shrink: 0;
}

.home-cat-card__icon svg {
	display: block;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	stroke: #c62828;
	fill: none;
	overflow: visible;
}

.home-cat-card__icon-badge {
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	color: var(--color-primary);
	box-shadow: 0 1px 6px rgba(15, 23, 42, 0.14);
	border: 1px solid rgba(198, 40, 40, 0.22);
}

.home-cat-card__icon-badge svg {
	display: block;
	width: 13px;
	height: 13px;
	stroke: currentColor;
}

.home-cat-card__title {
	margin: 0 0 4px;
	font-size: 0.94rem;
	font-weight: 700;
	text-align: center;
	line-height: 1.35;
	color: #1a1d21;
	flex: 0 0 auto;
	width: 100%;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	min-height: calc(0.94rem * 1.35 * 2);
	max-height: calc(0.94rem * 1.35 * 2);
}

.home-actions__selected {
	margin: 4px 0 0;
	padding: 10px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.55);
	font-size: 0.85rem;
	font-weight: 600;
	color: #000;
	line-height: 1.5;
}

/* Tab swipe — home scroll lock (other routes stay in shell.css). */
body.fighoo-tab-swipe-enabled .site-main--home .home-cat-scroll {
	touch-action: pan-y;
}

body.fighoo-tab-swipe-active .home-cat-scroll {
	touch-action: none;
	overflow: hidden;
}

/* Mobile glass overrides for home chrome (from shell media query). */
@media (max-width: 1024px), (hover: none), (pointer: coarse), (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui), (prefers-reduced-motion: reduce), (prefers-reduced-transparency: reduce) {
	.home-topbar__logout:not(.home-topbar__logout--login) {
		background: rgba(255, 255, 255, 0.88);
	}

	body.fighoo-theme .home-location__trigger {
		background: transparent !important;
		box-shadow: none !important;
		border: none !important;
	}
}

