/**
 * 會員中心2 — command center dashboard (Elementor post-3800 parity).
 */
.sc-account-page {
	background-color: #000000;
	--sc-neon: #39ff14;
	--sc-neon-dim: rgba(57, 255, 20, 0.125);
	--sc-pink: #ff00ff;
	--sc-border: #2a2a2a;
	--sc-panel: #111111;
	--sc-panel-hover: #1a1a1a;
	--sc-muted: #9ca3af;
	--sc-logout-border: #7f1d1d;
	font-family: 'Noto Sans TC', sans-serif;
	color: #fff;
}

.sc-account-wrap {
	max-width: 56rem;
	margin: 0 auto;
	padding: 1.5rem 1rem 2rem;
}

.sc-account-title {
	margin: 0 0 1.5rem;
	font-size: 1.5rem;
	font-weight: 900;
	color: #fff;
	border: none;
	padding: 0;
}

/* VIP card (woo-vip-container) */
.woo-vip-container {
	width: 100%;
	margin: 0;
	padding: 0;
	line-height: 1.5;
	box-sizing: border-box;
	display: block;
}

.woo-vip-container .member-card {
	--theme-color: #ffffff;
	background-color: #111;
	color: #fff;
	border: 2px solid var(--theme-color);
	padding: 24px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 24px;
	position: relative;
	overflow: hidden;
	transition: border-color 0.5s ease, box-shadow 0.5s ease;
	box-sizing: border-box;
	border-radius: 0;
}

@media (min-width: 600px) {
	.woo-vip-container .member-card {
		flex-direction: row;
		align-items: center;
	}
}

.woo-vip-container .watermark {
	position: absolute;
	top: -20px;
	right: 0;
	font-size: 150px;
	line-height: 1;
	opacity: 0.05;
	pointer-events: none;
	user-select: none;
	transition: all 0.5s ease;
	margin: 0;
}

.woo-vip-container .avatar-box {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	border: 4px solid var(--theme-color);
	background-color: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 50px;
	z-index: 10;
	box-shadow: 0 0 25px color-mix(in srgb, var(--theme-color) 40%, transparent);
	transition: all 0.5s ease;
	flex-shrink: 0;
	margin: 0 auto;
}

@media (min-width: 600px) {
	.woo-vip-container .avatar-box {
		margin: 0;
	}
}

.woo-vip-container .content-box {
	flex: 1;
	z-index: 10;
	text-align: center;
}

@media (min-width: 600px) {
	.woo-vip-container .content-box {
		text-align: left;
	}
}

.woo-vip-container .title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 900;
	color: #fff;
}

.woo-vip-container .dynamic-color {
	color: var(--theme-color);
	transition: color 0.5s ease;
}

.woo-vip-container .badges {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

@media (min-width: 600px) {
	.woo-vip-container .badges {
		justify-content: flex-start;
	}
}

.woo-vip-container .badge-level {
	font-size: 14px;
	font-weight: 700;
	padding: 4px 8px;
	background-color: #000;
	border: 1px solid var(--theme-color);
	color: var(--theme-color);
	transition: all 0.5s ease;
	border-radius: 0;
}

.woo-vip-container .badge-points {
	font-size: 14px;
	background-color: #222;
	padding: 4px 8px;
	border: 1px solid #444;
	color: #fff;
	border-radius: 0;
}

.woo-vip-container .progress-track {
	width: 100%;
	height: 8px;
	background-color: #333;
	border: 1px solid #000;
	position: relative;
}

.woo-vip-container .progress-fill {
	height: 100%;
	background-color: var(--theme-color);
	width: 0%;
	box-shadow: 0 0 10px var(--theme-color);
	transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.5s ease;
}

.woo-vip-container .hint-text {
	font-size: 12px;
	color: #888;
	margin-top: 8px;
	text-align: right;
	margin-bottom: 0;
}

/* Stats row — same tile height & layout as .sc-account-action (我的訂單) */
.sc-account-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	align-items: stretch;
	gap: 1rem;
	margin-top: 1.5rem;
}

@media (max-width: 767px) {
	.sc-account-stats {
		grid-template-columns: repeat(2, 1fr);
	}
}

.sc-account-stat,
.sc-account-action {
	box-sizing: border-box;
	min-height: 8.5rem;
}

.sc-account-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	height: 100%;
	padding: 1.5rem;
	background: var(--sc-panel);
	border: 1px solid var(--sc-border);
	color: #fff;
	text-align: center;
	transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.sc-account-stat:hover {
	background: var(--sc-panel-hover);
	border-color: var(--sc-neon);
	box-shadow: 4px 4px 0 var(--sc-neon-dim);
}

a.sc-account-stat--link {
	text-decoration: none;
	color: #fff;
	cursor: pointer;
}

a.sc-account-stat--link:hover {
	color: #fff;
}

a.sc-account-stat--link:focus-visible {
	outline: 2px solid var(--sc-neon);
	outline-offset: 2px;
}

.sc-account-stat__icon {
	font-size: 1.875rem;
	line-height: 1;
	margin: 0;
	flex-shrink: 0;
}

.sc-account-stat__value {
	font-weight: 700;
}

.sc-account-stat__value--wallet {
	color: var(--sc-neon);
}

.sc-account-stat__value--coupon {
	color: var(--sc-pink);
}

a.sc-account-stat--coupon:hover {
	border-color: var(--sc-pink);
	box-shadow: 4px 4px 0 rgba(255, 0, 255, 0.2);
}

.sc-account-stat__label {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5rem;
	color: #fff;
}

.sc-account-actions {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	align-items: stretch;
	gap: 1rem;
	margin-top: 1rem;
}

@media (max-width: 767px) {
	.sc-account-actions {
		grid-template-columns: repeat(2, 1fr);
	}
}

.sc-account-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	height: 100%;
	padding: 1.5rem;
	background: var(--sc-panel);
	border: 1px solid var(--sc-border);
	color: #fff;
	text-decoration: none;
	transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.sc-account-action:hover {
	background: var(--sc-panel-hover);
	border-color: var(--sc-neon);
	box-shadow: 4px 4px 0 var(--sc-neon-dim);
	color: #fff;
}

.sc-account-action--logout {
	border-color: var(--sc-logout-border);
}

.sc-account-action--logout:hover {
	border-color: var(--sc-logout-border);
}

.sc-account-action__icon {
	font-size: 1.875rem;
	line-height: 1;
	margin: 0;
}

.sc-account-action__label {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5rem;
}

/* Help block */
.sc-account-help {
	margin-top: 1rem;
	padding: 1rem;
	background: var(--sc-panel);
	border: 1px solid var(--sc-border);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

.sc-account-help__title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5rem;
	color: var(--sc-neon);
}

.sc-account-help__text {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	line-height: 1rem;
	color: #6b7280;
}

.sc-account-help__btn {
	display: block;
	width: 100%;
	padding: 0.65rem 1rem;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 700;
	color: #fff;
	background: transparent;
	border: 1px solid #fff;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
	box-sizing: border-box;
}

.sc-account-help__btn:hover {
	background: #fff;
	color: #000;
}
