/* 與手機 APP 一致：底部「浮動」導覽（膠囊列，不貼齊螢幕邊） */
:root {
	--smp-app-bar-height: 56px;
	--smp-app-bar-float: 10px;
	/* 面板捲動到底時，與底欄之間留白（需與 .smp-app-bottom-bar 的 height、bottom 一致） */
	--smp-app-bar-sheet-pad-bottom: calc(
		20px + var(--smp-app-bar-height) + var(--smp-app-bar-float) + env(safe-area-inset-bottom, 0px)
	);
}

body.smp-has-app-bottom-bar {
	padding-bottom: calc(
		var(--smp-app-bar-height) + var(--smp-app-bar-float) + 14px + env(safe-area-inset-bottom, 0px)
	);
}

.smp-app-bottom-bar {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	width: calc(100% - 24px);
	max-width: 420px;
	z-index: 100050;
	display: flex;
	justify-content: space-around;
	align-items: stretch;
	height: 56px;
	padding: 0 6px;
	box-sizing: border-box;
	background: rgba(28, 28, 30, 0.92);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-radius: 28px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.45),
		0 4px 12px rgba(0, 0, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.smp-app-bar__item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 6px 4px 4px;
	background: transparent;
	border: none;
	color: #e0e0e0;
	font-size: 11px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	text-decoration: none;
}

.smp-app-bar__item:hover,
.smp-app-bar__item:focus {
	color: #fff;
}

.smp-app-bar__item.is-active {
	color: #ff4081;
}

.smp-app-bar__icon {
	font-size: 22px;
	line-height: 1;
}

.smp-app-bar__label {
	line-height: 1.2;
}

/* 遮罩與面板 */
.smp-app-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100040;
	background: rgba(0, 0, 0, 0.55);
}

.smp-app-overlay.is-open {
	display: block;
}

.smp-app-sheet {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100045;
	max-height: 85vh;
	overflow: auto;
	background: #1e1e1e;
	border-radius: 16px 16px 0 0;
	/* 底欄 z-index 高於面板，內容需留白避免按鈕／表單被擋 */
	padding: 16px 16px var(--smp-app-bar-sheet-pad-bottom);
	color: #fff;
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.smp-app-sheet.is-open {
	display: block;
}

.smp-app-sheet__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.smp-app-sheet__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.smp-app-sheet__close {
	background: none;
	border: none;
	color: #aaa;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}

.smp-app-sheet__close:hover {
	color: #fff;
}

.smp-app-profile__line1 {
	font-size: 15px;
	margin-bottom: 4px;
}

.smp-app-profile__line2 {
	font-size: 13px;
	color: #aaa;
	margin-bottom: 16px;
}

.smp-app-profile__btn {
	display: block;
	width: 100%;
	padding: 12px 14px;
	margin-bottom: 10px;
	border-radius: 10px;
	border: none;
	font-size: 15px;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	background: #2a2a2a;
	color: #fff;
}

.smp-app-profile__btn--primary {
	background: linear-gradient(135deg, #ff4081, #e91e63);
}

.smp-app-profile__btn--danger {
	background: #3a2020;
	color: #ff8a80;
}

.smp-app-support__field {
	margin-bottom: 12px;
}

.smp-app-support__field label {
	display: block;
	font-size: 13px;
	margin-bottom: 4px;
	color: #bbb;
}

.smp-app-support__field input,
.smp-app-support__field textarea {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #444;
	background: #2a2a2a;
	color: #fff;
	font-size: 14px;
	box-sizing: border-box;
}

.smp-app-support__field textarea {
	min-height: 100px;
	resize: vertical;
}

.smp-app-pay__select {
	width: 100%;
	padding: 10px 12px;
	margin-bottom: 12px;
	border-radius: 8px;
	border: 1px solid #444;
	background: #2a2a2a;
	color: #fff;
	font-size: 14px;
}

.smp-app-msg {
	font-size: 13px;
	color: #ffab91;
	margin-top: 8px;
}
