/* 前台导航登录 / 注册按钮 */
.wer-auth-header-slot {
	display: flex !important;
	align-items: center;
	margin-left: 16px;
	flex-shrink: 0;
}

.wer-auth-header-desktop {
	align-self: center;
}

.wer-auth-header-mobile {
	width: 100%;
	margin: 16px 0 8px;
	padding: 16px 20px 8px;
	border-top: 1px solid #e2e8f0;
	box-sizing: border-box;
}

.wer-auth-header-mobile .wer-auth-actions {
	width: 100%;
}

.wer-auth-header-mobile .wer-auth-guest {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.wer-auth-header-mobile .wer-auth-btn {
	width: 100%;
	padding: 12px 16px;
	font-size: 14px;
}

.wer-auth-header-mobile .wer-auth-user {
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}

.wer-auth-header-mobile .wer-auth-user-badge {
	max-width: none;
	justify-content: flex-start;
}

.wer-auth-menu-item {
	display: flex !important;
	align-items: center;
	margin-left: 12px !important;
	list-style: none;
}

.wer-auth-menu-item::before,
.wer-auth-menu-item::after {
	display: none !important;
}

.wer-auth-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
}

.wer-auth-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
	border: 2px solid transparent;
	cursor: pointer;
}

.wer-auth-btn-outline {
	background: #fff;
	border-color: #2563eb;
	color: #2563eb !important;
}

.wer-auth-btn-outline:hover {
	background: #eff6ff;
	transform: translateY(-1px);
	color: #1d4ed8 !important;
}

.wer-auth-btn-primary {
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
	border-color: transparent;
}

.wer-auth-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
	color: #fff !important;
}

.wer-auth-btn-sm {
	padding: 6px 14px;
	font-size: 12px;
}

.wer-auth-user-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 10px 4px 4px;
	background: #f8fafc;
	border-radius: 999px;
	border: 1px solid #e2e8f0;
	max-width: 150px;
}

.wer-auth-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2563eb, #7c3aed);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.wer-auth-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}

.wer-auth-name {
	font-size: 12px;
	font-weight: 600;
	color: #1e293b;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wer-auth-balance {
	font-size: 11px;
	color: #2563eb;
	font-weight: 600;
}

.wer-auth-bar-shortcode {
	display: inline-flex;
	padding: 8px 0;
}

/* Astra 右侧栏对齐 */
.site-header-primary-section-right .wer-auth-header-slot,
.ast-grid-right-section .wer-auth-header-slot {
	margin-left: 20px;
}

@media (max-width: 921px) {
	.wer-auth-header-desktop {
		display: none !important;
	}
}

@media (min-width: 922px) {
	.wer-auth-header-mobile {
		display: none !important;
	}
}
