/* Global — live payout feed (chain filters + on-chain payout panel). Prefix: ts-pfeed */
.ts-pfeed {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: 100%;
}

/* Chain filters */
.ts-pfeed__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 7px;
}

.ts-pfeed__filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 31px;
	padding: 0 16px;
	border: 1px solid rgba(255, 170, 60, 0.1);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	color: #b7ac9d;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
}

.ts-pfeed__filter.is-active {
	border-color: #ff8a1e;
	background: rgba(255, 138, 30, 0.12);
	color: #ffb24d;
}

.ts-pfeed__dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	flex-shrink: 0;
}

.ts-pfeed__dot--eth,
.ts-pfeed__corner--eth {
	background: linear-gradient(160deg, #8ea2ff 0%, #5b76e8 100%);
}

.ts-pfeed__dot--arb,
.ts-pfeed__corner--arb {
	background: linear-gradient(160deg, #5fc0ff 0%, #1f8fe0 100%);
}

/* Panel */
.ts-pfeed__panel {
	width: 100%;
	border: 1px solid rgba(255, 170, 60, 0.1);
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(35, 26, 17, 0.5) 0%, #141313 100%);
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.5);
	overflow: hidden;
}

.ts-pfeed__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 19px 22px;
	background: rgba(255, 255, 255, 0.02);
	border-bottom: 1px solid rgba(255, 170, 60, 0.1);
}

.ts-pfeed__title {
	color: #f6efe6;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}

.ts-pfeed__live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 13px;
	border: 1px solid rgba(55, 210, 122, 0.3);
	border-radius: 999px;
	background: rgba(55, 210, 122, 0.1);
	color: #37d27a;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.ts-pfeed__live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #37d27a;
	flex-shrink: 0;
	animation: ts-pfeed-pulse 2s ease-in-out infinite;
}

@keyframes ts-pfeed-pulse {
	0%,
	100% {
		opacity: 1;
		box-shadow: 0 0 0 0 rgba(95, 214, 147, 0.45);
	}
	50% {
		opacity: 0.7;
		box-shadow: 0 0 0 6px rgba(95, 214, 147, 0);
	}
}

/* Stats */
.ts-pfeed__stats {
	display: flex;
	border-bottom: 1px solid rgba(255, 170, 60, 0.1);
}

.ts-pfeed__stat {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 16px 8px;
	text-align: center;
}

.ts-pfeed__stat + .ts-pfeed__stat {
	border-left: 1px solid rgba(255, 170, 60, 0.1);
}

.ts-pfeed__stat-value {
	color: #ffb24d;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
}

.ts-pfeed__stat-label {
	color: #8a8071;
	font-size: 10.5px;
	letter-spacing: 1.05px;
	text-transform: uppercase;
	line-height: 1;
}

/* Feed list */
.ts-pfeed__list {
	display: flex;
	flex-direction: column;
	max-height: 65vh;
	overflow-y: auto;
}

.ts-pfeed__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid rgba(255, 170, 60, 0.1);
}

.ts-pfeed__row[hidden] {
	display: none;
}

.ts-pfeed__sentinel {
	flex: 0 0 auto;
	height: 1px;
}

@keyframes ts-pfeed-flash {
	0% {
		background: rgba(255, 170, 60, 0.18);
	}
	100% {
		background: transparent;
	}
}

.ts-pfeed__row--new {
	animation: ts-pfeed-flash 2.4s ease-out;
}

@media (prefers-reduced-motion: reduce) {
	.ts-pfeed__row--new {
		animation: none;
	}
}

.ts-pfeed__row-left {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.ts-pfeed__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(55, 210, 122, 0.25);
	border-radius: 11px;
	background: rgba(55, 210, 122, 0.1);
	color: #f6efe6;
}

.ts-pfeed__icon svg {
	width: 14px;
	height: auto;
}

.ts-pfeed__corner {
	position: absolute;
	right: -4px;
	bottom: -4px;
	width: 16px;
	height: 16px;
	border: 2px solid #16110b;
	border-radius: 8px;
}

.ts-pfeed__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ts-pfeed__amounts {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
}

.ts-pfeed__amount {
	color: #f6efe6;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
}

.ts-pfeed__chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.ts-pfeed__chip--usdc {
	padding: 4px 8px;
	border-color: rgba(255, 170, 60, 0.28);
	background: rgba(255, 138, 30, 0.1);
	color: #ffb24d;
	font-weight: 700;
}

.ts-pfeed__chip--eth {
	border-color: rgba(111, 124, 255, 0.3);
	background: rgba(111, 124, 255, 0.12);
	color: #aab6ff;
}

.ts-pfeed__chip--arb {
	border-color: rgba(40, 160, 240, 0.3);
	background: rgba(40, 160, 240, 0.12);
	color: #7ccaff;
}

.ts-pfeed__addr {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ts-pfeed__to {
	color: #8a8071;
	font-size: 12px;
	line-height: 1;
}

.ts-pfeed__hash {
	color: #b7ac9d;
	font-size: 11.5px;
	line-height: 1;
}

.ts-pfeed__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	flex-shrink: 0;
	text-align: right;
}

.ts-pfeed__time {
	color: #8a8071;
	font-size: 12px;
	line-height: 1;
}

.ts-pfeed__verify {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: #ffb24d;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.ts-pfeed__verify-arrow {
	flex-shrink: 0;
}

.ts-pfeed__verify:hover {
	color: #ffd9a3;
}

/* Footer */
.ts-pfeed__foot {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px 21px;
	background: rgba(255, 255, 255, 0.02);
	border-top: 1px solid rgba(255, 170, 60, 0.1);
}

.ts-pfeed__wallets {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scrollbar-width: none;
}

.ts-pfeed__wallets::-webkit-scrollbar {
	display: none;
}

.ts-pfeed__wallet {
	display: inline-flex;
	flex: 0 0 auto;
	gap: 5px;
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
}

.ts-pfeed__wallet-label {
	color: #8a8071;
}

.ts-pfeed__wallet-addr {
	color: #ffb24d;
	font-weight: 700;
	text-decoration: none;
}

.ts-pfeed__wallet-addr:hover {
	color: #ffd9a3;
	text-decoration: underline;
}

.ts-pfeed__refresh {
	color: #8a8071;
	font-size: 12px;
	line-height: 1;
	text-align: center;
}

@media (min-width: 992px) {
	.ts-pfeed__filter {
		height: 35px;
	}

	.ts-pfeed__stat-value {
		font-size: 20px;
	}

	.ts-pfeed__list {
		max-height: 430px;
		overflow-y: auto;
	}

	.ts-pfeed__amount {
		font-size: 18px;
	}

	.ts-pfeed__foot {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.ts-pfeed__wallets {
		justify-content: flex-start;
		gap: 40px;
	}

	.ts-pfeed__refresh {
		text-align: right;
	}
}
