.nmcn-wrapper {
	position: relative;
}

/* ---------- Footer Bar ---------- */
.nmcn-footer-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: space-around;
	background: #ffffff;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
	padding: 6px 0;
	padding-bottom: calc(6px + env(safe-area-inset-bottom));
}

.nmcn-footer-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #7a7a7a;
	flex: 1;
	gap: 3px;
	cursor: pointer;
}

.nmcn-icon-wrap {
	position: relative;
	display: inline-flex;
}

.nmcn-footer-item i,
.nmcn-footer-item svg {
	font-size: 20px;
	line-height: 1;
}

.nmcn-footer-label {
	font-size: 11px;
	line-height: 1.2;
}

.nmcn-badge {
	position: absolute;
	top: -6px;
	right: -10px;
	background: #eb2c46;
	color: #fff;
	font-size: 9px;
	line-height: 1;
	padding: 2px 5px;
	border-radius: 20px;
	min-width: 14px;
	text-align: center;
}

/* ---------- Overlay ---------- */
.nmcn-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
}

.nmcn-wrapper.nmcn-panel-open .nmcn-overlay {
	opacity: 1;
	visibility: visible;
}

/* ---------- Sliding Panel ---------- */
.nmcn-panel {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	width: 88%;
	max-width: 420px;
	background: #fff;
	z-index: 10001;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.nmcn-wrapper.nmcn-panel-open .nmcn-panel {
	transform: translateX(0);
}

.nmcn-panel-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-bottom: 1px solid #eee;
	background: #fff;
	flex-shrink: 0;
}

.nmcn-close-panel {
	background: none;
	border: none;
	font-size: 18px;
	color: #333;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.nmcn-panel-title {
	font-size: 17px;
	font-weight: 700;
	color: #9f2089;
}

.nmcn-panel-search {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 14px;
	padding: 9px 12px;
	background: #f2f2f2;
	border-radius: 6px;
	flex-shrink: 0;
}

.nmcn-panel-search i {
	color: #888;
	font-size: 13px;
}

.nmcn-panel-search input[type='text'] {
	border: none;
	background: transparent;
	outline: none;
	width: 100%;
	font-size: 13px;
}

.nmcn-panel-body {
	display: flex;
	flex: 1;
	overflow: hidden;
}

.nmcn-tab-list {
	width: 34%;
	background: #fafafa;
	overflow-y: auto;
	flex-shrink: 0;
}

.nmcn-tab-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 6px;
	text-align: center;
	font-size: 12px;
	color: #444;
	border-left: 3px solid transparent;
	cursor: pointer;
}

.nmcn-tab-item img {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
}

.nmcn-tab-item.nmcn-active {
	background: #fff;
	border-left-color: #9f2089;
	font-weight: 600;
	color: #9f2089;
}

.nmcn-tab-panels {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
}

.nmcn-grid {
	display: none;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px 8px;
}

.nmcn-grid.nmcn-active {
	display: grid;
}

.nmcn-grid-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: #333;
	text-align: center;
}

.nmcn-grid-item img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	background: #f4f4f4;
}

.nmcn-grid-item span {
	font-size: 11.5px;
	line-height: 1.25;
}

/* ---------- Mobile-only visibility ---------- */
@media (min-width: 769px) {
	.nmcn-wrapper.nmcn-mobile-only {
		display: none !important;
	}
}
