.x88-mobile-bottom-nav {
	display: none;
}

@media (max-width: 767px) {
	body:has(.x88-mobile-bottom-nav) {
		--x88-mobile-tabs-height: 62px;
		--x88-mobile-fab-clearance: 15px;
		--x88-mobile-tabs-space: calc(var(--x88-mobile-tabs-height) + 1px + env(safe-area-inset-bottom, 0px));
		--x88-mobile-tabs-clearance: calc(var(--x88-mobile-tabs-space) + var(--x88-mobile-fab-clearance));
	}

	body:has(.x88-mobile-bottom-nav) #wrapper {
		padding-bottom: var(--x88-mobile-tabs-clearance);
	}

	body:has(.x88-mobile-bottom-nav) #top-link {
		bottom: var(--x88-mobile-tabs-clearance);
	}

	body:has(.x88-mobile-bottom-nav) .x88-home-reference .x88-home-bottom-promo {
		bottom: var(--x88-mobile-tabs-space);
		padding-bottom: calc(.625rem + var(--x88-mobile-fab-clearance));
	}

	.x88-mobile-bottom-nav {
		position: fixed;
		z-index: 51;
		inset: auto 0 0;
		display: block;
		padding: 0 max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px));
		border-top: 1px solid #1e293b;
		background: rgb(13 19 31 / 96%);
		box-shadow: 0 -4px 16px #050a1499;
		backdrop-filter: blur(12px);
		font-family: var(--x88-font-family, inherit);
	}

	.x88-mobile-tabs {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		grid-template-rows: minmax(0, 1fr);
		max-width: 460px;
		height: var(--x88-mobile-tabs-height);
		margin-inline: auto;
	}

	.x88-mobile-bottom-nav .x88-mobile-tab {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		align-items: center;
		gap: 3px;
		height: 100%;
		padding: 0 1px 9px;
		color: #94a3bb;
		font-size: clamp(10px, 2.82vw, 11px);
		font-weight: var(--x88-font-nav-weight, 600);
		font-style: var(--x88-font-nav-style, normal);
		line-height: 14px;
		letter-spacing: -.2px;
		text-align: center;
		text-decoration: none;
		white-space: nowrap;
	}

	.x88-mobile-bottom-nav .x88-mobile-tab :is(span, svg) {
		flex-shrink: 0;
	}

	.x88-mobile-tab svg {
		display: block;
		width: 22px;
		height: 22px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.8;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.x88-mobile-bottom-nav .x88-mobile-tab:hover,
	.x88-mobile-bottom-nav .x88-mobile-tab:focus-visible {
		color: #e2e8f0;
	}

	.x88-mobile-bottom-nav .x88-mobile-tab[aria-current],
	.x88-mobile-bottom-nav .x88-mobile-tab-offers,
	.x88-mobile-wallet[open] > summary {
		color: #ff9900;
		font-weight: var(--x88-font-nav-weight, 800);
	}

	.x88-mobile-tab-offers .x88-mobile-offers-icon {
		position: relative;
		display: grid;
		flex: none;
		place-items: center;
		width: 46px;
		height: 46px;
		border: 2px solid #ff8a66;
		border-radius: 50%;
		background: linear-gradient(#ff4d00, #ff2200);
		box-shadow: 0 0 12px #ff4d0080, inset 0 0 0 1px #ffffff40;
		color: #fff;
	}

	.x88-mobile-tab-offers[aria-current] .x88-mobile-offers-icon {
		box-shadow: 0 0 16px #ff4d00b3, inset 0 0 0 1px #ffffff40;
	}

	.x88-mobile-offers-icon svg {
		width: 25px;
		height: 25px;
		stroke-width: 2;
	}

	.x88-mobile-offers-badge {
		position: absolute;
		top: -6px;
		right: -7px;
		padding: 1px 4px;
		border: 1px solid #ffffff99;
		border-radius: 99px;
		background: #d91527;
		color: #fff;
		font-size: 8px;
		font-weight: 800;
		line-height: 1.1;
	}

	.x88-mobile-wallet {
		min-width: 0;
	}

	.x88-mobile-wallet > summary {
		list-style: none;
		cursor: pointer;
	}

	.x88-mobile-wallet > summary::-webkit-details-marker {
		display: none;
	}

	.x88-mobile-wallet-links {
		position: absolute;
		inset: auto 12px calc(100% + 12px) auto;
		width: min(12rem, calc(100vw - 24px));
		margin: 0;
		padding: 6px;
		border: 1px solid #29364c;
		border-radius: 11px;
		background: #111827;
		box-shadow: 0 6px 20px #050a14a6;
		list-style: none;
	}

	.x88-mobile-wallet-links li {
		margin: 0;
	}

	.x88-mobile-wallet-links a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 6px 10px;
		border-radius: 7px;
		color: #e2e8f0;
		font-size: 13px;
		font-weight: var(--x88-font-nav-weight, 600);
		font-style: var(--x88-font-nav-style, normal);
	}

	.x88-mobile-wallet-links a:is(:hover, :focus-visible, [aria-current]) {
		background: #1e293b;
		color: #ffb141;
	}

	.x88-mobile-bottom-nav :is(a, summary):focus-visible {
		outline: 2px solid #ffb141;
		outline-offset: -1px;
	}
}
