.bfs-stock-wrapper {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	padding: 2rem 1rem;
	max-width: 1400px;
	margin: 0 auto;
	color: #e0e7ff;
	background: radial-gradient(ellipse at top, rgba(88, 28, 135, 0.15), transparent 50%),
		radial-gradient(ellipse at bottom, rgba(30, 58, 138, 0.15), transparent 50%);
}

.bfs-stock-section {
	position: relative;
	border-radius: 20px;
	padding: 1.5rem;
	background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
	border: 2px solid transparent;
	background-clip: padding-box;
	box-shadow:
		0 0 40px rgba(139, 92, 246, 0.3),
		0 20px 60px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bfs-stock-section::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 20px;
	padding: 2px;
	background: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4, #8b5cf6);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0.6;
	animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
	0% {
		filter: hue-rotate(0deg);
	}

	100% {
		filter: hue-rotate(360deg);
	}
}

.bfs-stock-section::after {
	content: '';
	position: absolute;
	inset: -50% -50%;
	background: conic-gradient(from 0deg at 50% 50%,
			transparent 0deg,
			rgba(139, 92, 246, 0.15) 90deg,
			transparent 180deg,
			rgba(59, 130, 246, 0.15) 270deg,
			transparent 360deg);
	animation: rotate 8s linear infinite;
	pointer-events: none;
}

@keyframes rotate {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.bfs-stock-section:hover {
	transform: translateY(-5px);
	box-shadow:
		0 0 60px rgba(139, 92, 246, 0.5),
		0 25px 80px rgba(0, 0, 0, 0.6),
		inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.bfs-section-header {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin-bottom: 1rem;
	position: relative;
	z-index: 1;
}

.bfs-section-header h4 {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 900;
	letter-spacing: 0.05em;
	color: #fff;
	text-transform: uppercase;
	text-shadow:
		0 0 20px rgba(139, 92, 246, 0.8),
		0 0 40px rgba(139, 92, 246, 0.5),
		0 2px 4px rgba(0, 0, 0, 0.8);
	background: linear-gradient(135deg, #a78bfa, #60a5fa, #34d399);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
	0% {
		filter: brightness(1) drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
	}

	100% {
		filter: brightness(1.2) drop-shadow(0 0 20px rgba(139, 92, 246, 0.8));
	}
}

.bfs-stock-updated {
	margin: 0;
	font-size: 0.95rem;
	color: #94a3b8;
	font-weight: 500;
	letter-spacing: 0.02em;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	flex-wrap: wrap;
}

.bfs-stock-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
	position: relative;
	z-index: 1;
}

.bfs-stock-timer {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem 1.25rem;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
	border: 2px solid rgba(139, 92, 246, 0.4);
	box-shadow:
		0 0 30px rgba(139, 92, 246, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.1),
		0 8px 32px rgba(0, 0, 0, 0.3);
	font-size: 1rem;
	color: #e0e7ff;
	backdrop-filter: blur(10px);
	position: relative;
	overflow: hidden;
}

.bfs-stock-timer::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	transform: translateX(-100%);
	animation: shimmer 3s infinite;
}

@keyframes shimmer {
	0% {
		transform: translateX(-100%);
	}

	100% {
		transform: translateX(200%);
	}
}

.bfs-stock-timer-label {
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #a78bfa;
	font-weight: 700;
}

.bfs-stock-timer-value {
	font-weight: 900;
	font-size: 1.3rem;
	font-variant-numeric: tabular-nums;
	color: #fff;
	text-shadow:
		0 0 10px rgba(139, 92, 246, 0.8),
		0 0 20px rgba(139, 92, 246, 0.5),
		0 2px 4px rgba(0, 0, 0, 0.8);
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.05);
	}
}

.bfs-stock-timer-cycle {
	font-size: 0.9rem;
	color: #cbd5e1;
	font-weight: 600;
	padding: 0.25rem 0.75rem;
	background: rgba(139, 92, 246, 0.2);
	border-radius: 8px;
	border: 1px solid rgba(139, 92, 246, 0.3);
}

.bfs-local-datetime-group {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.bfs-local-datetime-inline {
	font-weight: 600;
}

.bfs-timezone-label,
.bfs-history-tz {
	font-size: 0.82em;
	color: #cbd5e1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bfs-stock-delay-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.18rem 0.5rem;
	border-radius: 999px;
	font-size: 0.72rem;
	line-height: 1;
	color: #cbd5e1;
	background: rgba(148, 163, 184, 0.14);
	border: 1px solid rgba(148, 163, 184, 0.2);
	white-space: nowrap;
}

.bfs-stock-timer-zone {
	font-size: 0.8rem;
	color: #94a3b8;
	font-weight: 500;
}

.bfs-stock-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
	justify-content: center;
	gap: 1rem;
	list-style: none;
	padding: 0;
	margin: 0;
	position: relative;
	z-index: 1;
}

.bfs-stock-card {
	border-radius: 12px;
	padding: 0;
	background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
	border: 2px solid rgba(139, 92, 246, 0.3);
	box-shadow:
		0 0 20px rgba(139, 92, 246, 0.2),
		0 10px 40px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
	display: flex;
	flex-direction: column;
	gap: 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

.bfs-stock-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent 50%, rgba(59, 130, 246, 0.1));
	opacity: 0;
	transition: opacity 0.3s ease;
}

.bfs-stock-card:hover {
	transform: translateY(-8px) scale(1.02);
	border-color: rgba(139, 92, 246, 0.6);
	box-shadow:
		0 0 40px rgba(139, 92, 246, 0.5),
		0 20px 60px rgba(0, 0, 0, 0.7),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bfs-stock-card:hover::before {
	opacity: 1;
}

.bfs-stock-card:active {
	transform: translateY(-6px) scale(1.01);
}

.bfs-image-wrapper {
	border-radius: 12px 12px 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 0.5rem;
	background: linear-gradient(180deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.1));
	position: relative;
	overflow: hidden;
	min-height: 80px;
}

.bfs-image-wrapper::before {
	display: none;
}

@keyframes imageGlow {
	0% {
		opacity: 0.5;
		transform: scale(1);
	}

	100% {
		opacity: 1;
		transform: scale(1.1);
	}
}

.bfs-image-wrapper img {
	max-width: 70px;
	height: auto;
	display: block;
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 10px 30px rgba(139, 92, 246, 0.6)) drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
	transition: transform 0.3s ease;
}

.bfs-stock-card:hover .bfs-image-wrapper img {
	transform: scale(1.1) rotate(5deg);
}

.bfs-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	text-align: left;
	padding: 0.75rem;
	background: linear-gradient(180deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
}

.bfs-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.bfs-card-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.02em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.bfs-card-rarity {
	font-size: 0.55rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.2rem 0.4rem;
	border-radius: 8px;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
	color: #fff;
	font-weight: 700;
	border: 1px solid rgba(139, 92, 246, 0.5);
	box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.bfs-card-prices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.4rem;
	font-size: 0.9rem;
	color: #e0e7ff;
}

.bfs-card-price {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.4rem 0.5rem;
	border-radius: 8px;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.1));
	border: 1px solid rgba(139, 92, 246, 0.3);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.05),
		0 4px 12px rgba(0, 0, 0, 0.3);
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
	min-height: 0;
}

.bfs-card-price::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	transition: left 0.5s ease;
}

.bfs-stock-card:hover .bfs-card-price::before {
	left: 100%;
}

.bfs-card-price:hover {
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(59, 130, 246, 0.2));
	border-color: rgba(139, 92, 246, 0.5);
	transform: translateY(-2px);
}

.bfs-card-price strong {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #a78bfa;
	font-weight: 700;
	line-height: 1;
}

.bfs-card-price span {
	font-size: 0.8rem;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	line-height: 1.2;
	word-break: break-word;
	overflow-wrap: break-word;
}

.bfs-rarity-common {
	background: linear-gradient(135deg, rgba(148, 163, 184, 0.2), rgba(100, 116, 139, 0.15));
	box-shadow: 0 0 20px rgba(148, 163, 184, 0.3);
}

.bfs-rarity-uncommon {
	background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(22, 163, 74, 0.2));
	box-shadow: 0 0 25px rgba(34, 197, 94, 0.4);
}

.bfs-rarity-rare {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.25));
	box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.bfs-rarity-legendary {
	background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(147, 51, 234, 0.3));
	box-shadow: 0 0 35px rgba(168, 85, 247, 0.6);
}

.bfs-rarity-mythical {
	background: linear-gradient(135deg, rgba(236, 72, 153, 0.4), rgba(219, 39, 119, 0.35));
	box-shadow: 0 0 40px rgba(236, 72, 153, 0.7);
	animation: mythicalPulse 2s ease-in-out infinite;
}

@keyframes mythicalPulse {

	0%,
	100% {
		box-shadow: 0 0 40px rgba(236, 72, 153, 0.7);
	}

	50% {
		box-shadow: 0 0 60px rgba(236, 72, 153, 1);
	}
}

.bfs-rarity-unknown {
	background: linear-gradient(135deg, rgba(71, 85, 105, 0.2), rgba(51, 65, 85, 0.15));
	box-shadow: 0 0 15px rgba(71, 85, 105, 0.3);
}

/* Particle effect background */
.bfs-stock-wrapper::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image:
		radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
		radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
	pointer-events: none;
	z-index: -1;
}

/* Scrollbar styling */
.bfs-stock-wrapper::-webkit-scrollbar {
	width: 10px;
}

.bfs-stock-wrapper::-webkit-scrollbar-track {
	background: rgba(15, 23, 42, 0.5);
	border-radius: 10px;
}

.bfs-stock-wrapper::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #8b5cf6, #3b82f6);
	border-radius: 10px;
	border: 2px solid rgba(15, 23, 42, 0.5);
}

.bfs-stock-wrapper::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #a78bfa, #60a5fa);
}

@media (max-width: 900px) {
	.bfs-stock-section {
		padding: 2rem 1.5rem;
	}

	.bfs-section-header h4 {
		font-size: 1.8rem;
	}

	.bfs-stock-timer {
		padding: 0.85rem 1.5rem;
		gap: 0.75rem;
	}

	.bfs-stock-timer-value {
		font-size: 1.5rem;
	}
}

@media (max-width: 640px) {
	.bfs-stock-wrapper {
		padding: 1rem 0.5rem;
		gap: 2rem;
	}

	.bfs-stock-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}

	.bfs-card-prices {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}

	.bfs-stock-section {
		padding: 1.5rem 0.75rem;
		border-radius: 16px;
	}

	.bfs-section-header h4 {
		font-size: 1.3rem;
	}

	.bfs-stock-updated {
		font-size: 0.8rem;
	}

	.bfs-stock-timer {
		flex-direction: column;
		padding: 0.85rem;
		gap: 0.4rem;
		text-align: center;
	}

	.bfs-stock-timer-label {
		font-size: 0.65rem;
	}

	.bfs-stock-timer-value {
		font-size: 1.5rem;
	}

	.bfs-stock-timer-cycle {
		font-size: 0.75rem;
	}

	.bfs-stock-timer-zone {
		font-size: 0.7rem;
	}

	.bfs-stock-card {
		position: relative;
	}

	.bfs-card-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding-bottom: 0.5rem;
	}

	.bfs-card-title {
		font-size: 0.9rem;
		order: 2;
	}

	.bfs-card-rarity {
		position: absolute;
		top: 0.5rem;
		left: 0.5rem;
		z-index: 10;
		font-size: 0.55rem;
		padding: 0.3rem 0.5rem;
		letter-spacing: 0.1em;
	}

	.bfs-card-body {
		padding: 0.85rem;
		gap: 0.6rem;
	}

	.bfs-card-price {
		padding: 0.5rem 0.6rem;
	}

	.bfs-card-price strong {
		font-size: 0.6rem;
	}

	.bfs-card-price span {
		font-size: 0.95rem;
	}

	.bfs-image-wrapper {
		min-height: 110px;
		padding: 1rem 0.5rem;
	}
}

/* --- Stock History Styles --- */
.bfs-history-wrapper {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(139, 92, 246, 0.2);
	position: relative;
	z-index: 1;
}

.bfs-history-title {
	font-size: 1.25rem;
	font-weight: 800;
	color: #fff;
	margin-bottom: 1.25rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	background: linear-gradient(135deg, #a78bfa, #60a5fa);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}

.bfs-history-table-container {
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(12px);
	border-radius: 16px;
	border: 1px solid rgba(139, 92, 246, 0.2);
	overflow-x: auto;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.bfs-history-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.bfs-history-table th {
	padding: 1rem 1.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #94a3b8;
	border-bottom: 1px solid rgba(139, 92, 246, 0.15);
	background: rgba(139, 92, 246, 0.05);
}

.bfs-history-table td {
	padding: 1.25rem;
	border-bottom: 1px solid rgba(139, 92, 246, 0.08);
	vertical-align: top;
}

.bfs-history-table tr:last-child td {
	border-bottom: none;
}

.bfs-history-table tr:hover td {
	background: rgba(139, 92, 246, 0.05);
}

.bfs-col-date {
	white-space: nowrap;
	width: 150px;
}

.bfs-history-date {
	display: block;
	font-weight: 700;
	color: #e0e7ff;
	font-size: 0.95rem;
}

.bfs-history-tz {
	font-size: 0.7rem;
	color: #64748b;
	font-weight: 600;
	margin-top: 0.2rem;
	display: block;
}

.bfs-history-fruit-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.bfs-history-fruit-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem 0.6rem;
	border-radius: 12px;
	background: rgba(139, 92, 246, 0.1);
	border: 1px solid rgba(139, 92, 246, 0.2);
	color: #cbd5e1;
	font-size: 0.8rem;
	font-weight: 600;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bfs-history-fruit-icon {
	width: 20px;
	height: 20px;
	object-fit: contain;
	filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.3));
}

.bfs-history-fruit-tag:hover {
	transform: translateY(-2px);
	border-color: rgba(139, 92, 246, 0.6);
	background: rgba(139, 92, 246, 0.2);
	color: #fff;
	box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Rarity colors for history tags */
.bfs-history-fruit-tag.bfs-rarity-mythical { border-color: rgba(236, 72, 153, 0.4); background: rgba(236, 72, 153, 0.1); }
.bfs-history-fruit-tag.bfs-rarity-legendary { border-color: rgba(168, 85, 247, 0.4); background: rgba(168, 85, 247, 0.1); }
.bfs-history-fruit-tag.bfs-rarity-rare { border-color: rgba(59, 130, 246, 0.4); background: rgba(59, 130, 246, 0.1); }
.bfs-history-fruit-tag.bfs-rarity-uncommon { border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.1); }

/* Enhanced Header Styles */
.bfs-status-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	background: #10b981;
	border-radius: 50%;
	margin-right: 0.75rem;
	box-shadow: 0 0 15px #10b981;
	animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
	0% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.5; transform: scale(0.8); }
	100% { opacity: 1; transform: scale(1); }
}

.bfs-main-title {
	text-align: center;
	font-size: 2.5rem !important;
	font-weight: 950 !important;
	margin-bottom: 3rem !important;
	background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-transform: uppercase;
	letter-spacing: -0.02em;
}

.bfs-currency-icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
	display: inline-block;
	margin-right: 4px;
	vertical-align: middle;
}

.bfs-time-ago {
	color: #a78bfa;
	font-weight: 700;
}

/* Responsive History */
@media (max-width: 640px) {
	.bfs-history-wrapper {
		margin-top: 1.5rem;
		padding-top: 1.25rem;
	}
	
	.bfs-history-table thead {
		display: none; /* Hide headers on mobile */
	}
	
	.bfs-history-table td {
		display: block;
		width: 100%;
		padding: 1rem 0.75rem;
		box-sizing: border-box;
	}
	
	.bfs-history-table td.bfs-col-date {
		background: rgba(139, 92, 246, 0.1);
		border-bottom: 1px solid rgba(139, 92, 246, 0.2);
	}
	
	.bfs-history-fruit-tag {
		font-size: 0.75rem;
		padding: 0.25rem 0.5rem;
	}
}

.bfs-currency-label {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #a78bfa;
	font-weight: 700;
	line-height: 1;
	display: block;
	margin-bottom: 2px;
}

.bfs-price-value {
	font-size: 0.85rem;
	font-weight: 800;
	color: #fff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.bfs-card-price.beli .bfs-price-value {
	color: #34d399; /* Greenish for Beli */
}

.bfs-card-price.robux .bfs-price-value {
	color: #60a5fa; /* Bluish for Robux */
}
