.ttb-bar {
	background: var(--ttb-bg, #111111);
	width: 100%;
	box-sizing: border-box;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	position: relative;
	overflow: hidden;
}
.ttb-bar * {
	box-sizing: border-box;
}

.ttb-bar::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		transparent 20%,
		color-mix(in srgb, var(--ttb-accent, #e5232e) 10%, transparent) 50%,
		transparent 80%
	);
	background-size: 250% 100%;
	animation: ttb-sheen 9s ease-in-out infinite;
	pointer-events: none;
}
@keyframes ttb-sheen {
	0% { background-position: 130% 0; }
	100% { background-position: -30% 0; }
}

.ttb-inner {
	max-width: 1300px;
	margin: 0 auto;
	padding: 11px 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-around;
	gap: 10px 16px;
	position: relative;
	z-index: 1;
}

.ttb-item {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 1 1 0;
	justify-content: center;
	white-space: nowrap;
	min-width: 0;
	position: relative;
	padding: 8px 16px;
	border-radius: 8px;
	transition: all 0.3s ease;
	cursor: pointer;
}

/* --- ENHANCED HOVER EFFECT --- */
.ttb-item:hover {
	background: color-mix(in srgb, var(--ttb-accent, #e5232e) 12%, transparent);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (min-width: 601px) {
	.ttb-item:not(:last-child)::after {
		content: "";
		position: absolute;
		right: -8px;
		top: 50%;
		transform: translateY(-50%);
		width: 1px;
		height: 16px;
		background: rgba(255, 255, 255, 0.12);
	}
}

.ttb-icon {
	display: inline-block;
	width: var(--ttb-icon-size, 20px);
	height: var(--ttb-icon-size, 20px);
	flex: 0 0 auto;
	background-color: var(--ttb-icon-color, #ffffff);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	transition: all 0.3s ease;
}

/* Forced hover override on icon */
.ttb-item:hover .ttb-icon {
	background-color: var(--ttb-accent, #e5232e) !important;
	transform: scale(1.15) rotate(3deg);
}

.ttb-text {
	color: var(--ttb-text, #ffffff);
	font-size: var(--ttb-text-size, 13px);
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	position: relative;
	transition: all 0.3s ease;
}

/* Forced hover override on text */
.ttb-item:hover .ttb-text {
	color: var(--ttb-accent, #e5232e) !important;
	text-shadow: 0 0 10px color-mix(in srgb, var(--ttb-accent, #e5232e) 30%, transparent);
}

.ttb-text::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: -3px;
	height: 1.5px;
	background: var(--ttb-accent, #e5232e);
	transition: right 0.3s ease;
}
.ttb-item:hover .ttb-text::after {
	right: 0;
}

@media (min-width: 601px) {
	.ttb-hide-desktop {
		display: none !important;
	}
}

/* --- PERFECTLY CENTERED MOBILE GRID --- */
@media (max-width: 600px) {
	.ttb-hide-mobile {
		display: none !important;
	}

	.ttb-inner {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		padding: 12px 10px;
		gap: 12px 0;
	}

	.ttb-item {
		width: 50%; /* Forces 2 items per row, identical spacing left and right */
		display: flex;
		justify-content: center; /* Centers the icon+text group in the 50% block */
		align-items: center;
		text-align: left;
		gap: 8px;
		padding: 6px;
		border-radius: 8px;
		flex: 0 0 50%;
	}
	.ttb-item::after {
		display: none;
	}

	.ttb-icon {
		width: var(--ttb-mobile-icon-size, 16px);
		height: var(--ttb-mobile-icon-size, 16px);
	}

	.ttb-text {
		white-space: normal;
		font-size: var(--ttb-mobile-text-size, 11px);
		line-height: 1.25;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
	.ttb-text::after {
		display: none;
	}
}