/* ==========================================================================
   My Account — layout, hero, navigation, dashboard, login
   ========================================================================== */
.woocommerce-account .site-main { padding-bottom: 80px; }

.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 32px;
	align-items: start;
}

.woocommerce-account .woocommerce > * { grid-column: 1 / -1; }

/* Logged in: sidebar nav + content */
.woocommerce-account.logged-in .woocommerce { grid-template-columns: 260px minmax(0, 1fr); }
.woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-navigation { grid-column: 1; }
.woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-content { grid-column: 2; }

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none !important;
	width: auto !important;
}

/* ---------- Hero ---------- */
.bv-account-hero {
	position: relative;
	width: 100vw;
	margin: 0 calc(50% - 50vw) 36px;
	padding: 64px 24px 56px;
	overflow: hidden;
	background: var(--bv-grad-dark);
	color: #fff;
}

.bv-account-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(180deg, #000, transparent 90%);
}

.bv-account-hero__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: var(--bv-wrap);
	margin-inline: auto;
	padding-inline: 24px;
}

.bv-avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 84px;
	height: 84px;
	border-radius: 26px;
	background: var(--bv-grad);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: .02em;
	box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), var(--bv-glow);
	animation: bv-rise .9s var(--bv-ease) both;
}

.bv-account-hero__kicker {
	display: block;
	margin-bottom: 8px;
	color: var(--bv-cyan);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .24em;
	text-transform: uppercase;
}

.bv-account-hero__title {
	margin: 0;
	color: #fff;
	font-size: clamp(32px, 5vw, 60px);
	line-height: 1.05;
	letter-spacing: -.035em;
	animation: bv-rise 1s var(--bv-ease) .1s both;
}

.bv-account-hero__meta { margin: 10px 0 0; color: rgba(255, 255, 255, .6); }

/* ---------- Navigation ---------- */
.woocommerce-MyAccount-navigation {
	position: sticky;
	top: 110px;
	padding: 12px;
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--bv-shadow);
}

.woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }

.woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 16px;
	border-radius: 14px;
	color: var(--bv-muted);
	font-weight: 600;
	text-decoration: none;
	transition: background .25s, color .25s, padding .35s var(--bv-ease);
}

.woocommerce-MyAccount-navigation li a::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--bv-ico) center / contain no-repeat;
	mask: var(--bv-ico) center / contain no-repeat;
}

/* 图标通过自定义属性从 li 继承到 a::before；默认圆点，各菜单项覆盖 */
.woocommerce-MyAccount-navigation li { --bv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E"); }

li.woocommerce-MyAccount-navigation-link--dashboard { --bv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='2'/%3E%3Crect x='13' y='4' width='7' height='7' rx='2'/%3E%3Crect x='4' y='13' width='7' height='7' rx='2'/%3E%3Crect x='13' y='13' width='7' height='7' rx='2'/%3E%3C/svg%3E"); }
li.woocommerce-MyAccount-navigation-link--orders { --bv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7Zm3 0a3 3 0 0 1 6 0'/%3E%3C/svg%3E"); }
li.woocommerce-MyAccount-navigation-link--edit-address { --bv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
li.woocommerce-MyAccount-navigation-link--edit-account { --bv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E"); }
li.woocommerce-MyAccount-navigation-link--payment-methods { --bv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='13' rx='3'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); }
li.woocommerce-MyAccount-navigation-link--customer-logout { --bv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4h3a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-3M10 17l5-5-5-5M15 12H4'/%3E%3C/svg%3E"); }

.woocommerce-MyAccount-navigation li a:hover { background: var(--bv-bg); color: var(--bv-ink); padding-left: 20px; }

.woocommerce-MyAccount-navigation li.is-active a {
	background: var(--bv-grad);
	color: #fff;
	box-shadow: var(--bv-glow);
}

.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--bv-line); }
.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #fff0f2; color: #d7263d; }

/* ---------- Content card ---------- */
.woocommerce-account .page-content a,
.woocommerce-account .page-content a:hover { text-decoration: none; }

.woocommerce-MyAccount-content {
	min-width: 0;
	padding: 32px;
	border-radius: 28px;
	background: #fff;
	box-shadow: var(--bv-shadow);
	animation: bv-rise .8s var(--bv-ease) both;
}

.woocommerce-MyAccount-content > h2,
.woocommerce-MyAccount-content h3,
.woocommerce-MyAccount-content .woocommerce-column__title,
.woocommerce-MyAccount-content .woocommerce-order-details__title {
	margin: 0 0 18px;
	font-size: 22px;
}

.woocommerce-MyAccount-content > p:first-child { color: var(--bv-muted); }
.woocommerce-MyAccount-content mark { padding: 2px 8px; border-radius: 6px; background: rgba(44, 99, 255, .1); color: var(--bv-blue); font-weight: 600; }

/* ---------- Dashboard ---------- */
.bv-dash-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 28px;
}

.bv-dash-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px;
	border: 1.5px solid var(--bv-line);
	border-radius: 20px;
	color: var(--bv-ink);
	text-decoration: none;
	transition: transform .4s var(--bv-ease), border-color .3s, box-shadow .4s;
}

.bv-dash-card:hover {
	color: var(--bv-ink);
	border-color: transparent;
	box-shadow: 0 0 0 1.5px rgba(44, 99, 255, .5), 0 24px 48px -24px rgba(44, 99, 255, .55);
	transform: translateY(-6px);
}

.bv-dash-card__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 10px;
	border-radius: 14px;
	background: rgba(44, 99, 255, .1);
	color: var(--bv-blue);
	transition: background .35s, color .35s, transform .5s var(--bv-ease);
}

.bv-dash-card:hover .bv-dash-card__icon { background: var(--bv-grad); color: #fff; transform: rotate(-8deg); }
.bv-dash-card strong { font-size: 16px; }
.bv-dash-card > span:last-child { color: var(--bv-muted); font-size: 13px; }

.bv-dash-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bv-dash-panel__head h2 { margin: 0; font-size: 20px; }
.bv-dash-panel__head a { font-weight: 600; }

.bv-dash-orders { margin: 0; padding: 0; list-style: none; }

.bv-dash-orders a {
	display: grid;
	grid-template-columns: 110px 1fr auto 110px;
	align-items: center;
	gap: 16px;
	padding: 16px 12px;
	border-bottom: 1px solid var(--bv-line);
	border-radius: 12px;
	color: var(--bv-ink);
	text-decoration: none;
	transition: background .25s;
}

.bv-dash-orders a:hover { background: var(--bv-bg); color: var(--bv-ink); }
.bv-dash-orders__no { font-weight: 700; }
.bv-dash-orders__date { color: var(--bv-muted); font-size: 14px; }
.bv-dash-orders__total { font-weight: 700; text-align: right; }

.bv-dash-empty {
	padding: 40px 20px;
	border: 1.5px dashed var(--bv-line);
	border-radius: 20px;
	text-align: center;
}

.bv-dash-empty p { margin: 0 0 18px; color: var(--bv-muted); }

/* Status pills (dashboard + orders table) */
.bv-status,
.woocommerce-orders-table__cell-order-status {
	font-size: 13px;
	font-weight: 700;
}

.bv-status {
	justify-self: start;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--bv-bg);
	color: var(--bv-muted);
}

.bv-status--processing, .woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status { color: #1d7bf2; }
.bv-status--processing { background: rgba(29, 123, 242, .12); }
.bv-status--completed, .woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status { color: #0f9d6b; }
.bv-status--completed { background: rgba(15, 157, 107, .12); }
.bv-status--on-hold, .bv-status--pending, .woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status, .woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status { color: #c77700; }
.bv-status--on-hold, .bv-status--pending { background: rgba(255, 170, 0, .14); }
.bv-status--cancelled, .bv-status--failed, .bv-status--refunded, .woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status, .woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status { color: #d7263d; }
.bv-status--cancelled, .bv-status--failed, .bv-status--refunded { background: rgba(215, 38, 61, .1); }
