/* ===== Member center (JD-style) ===== */

/* ===== Guest login / register ===== */
.xueer-account-promo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff5f0, #fff);
  border: 1px solid #ffd8c2;
  color: #333;
}

.xueer-account-promo strong {
  font-size: 15px;
  color: #ff5000;
}

.xueer-account-promo span {
  font-size: 12px;
  color: #666;
}

.xueer-account-promo--mobile {
  display: flex;
}

.xueer-account-auth__shell {
  display: block;
}

.xueer-account-auth__brand {
  display: none;
}

.xueer-account-auth__heading {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.xueer-account-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 16px;
}

.xueer-account-auth__tab {
  border: 1px solid #eee;
  background: #fafafa;
  color: #666;
  min-height: 42px;
  border-radius: 21px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.xueer-account-auth__tab.is-active {
  background: #ff5000;
  border-color: #ff5000;
  color: #fff;
}

.xueer-account-auth__panel {
  display: none;
}

.xueer-account-auth__panel.is-active {
  display: block;
}

.xueer-account-auth .woocommerce-form-login,
.xueer-account-auth .woocommerce-form-register {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.xueer-account-auth .woocommerce-form-row {
  margin-bottom: 12px;
}

.xueer-account-auth label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #333;
}

.xueer-account-auth input.input-text {
  width: 100%;
  min-height: 42px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
}

.xueer-account-auth .woocommerce-button.button {
  width: 100%;
  min-height: 44px;
  border-radius: 22px;
  background: #ff5000;
  border-color: #ff5000;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.xueer-account-auth .woocommerce-LostPassword {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
}

.xueer-account-auth .woocommerce-privacy-policy-text {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

.xueer-account-auth__hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

.xueer-account-auth__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Yahoo-style stepped login */
.xueer-login-step {
  display: none;
}

.xueer-login-step.is-active {
  display: block;
}

.xueer-login-flow__title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: #162033;
  letter-spacing: .02em;
}

.xueer-login-flow__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.xueer-login-flow__meta .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: #444;
}

.xueer-login-flow__meta .woocommerce-form-login__rememberme input {
  accent-color: #162033;
  width: 16px;
  height: 16px;
}

.xueer-login-flow__forgot-user {
  font-size: 13px;
  color: #6b7385;
  text-decoration: none;
  white-space: nowrap;
}

.xueer-login-flow__forgot-user:hover {
  color: #162033;
}

.xueer-login-next,
.xueer-account-auth .xueer-login-next.button {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: #162033;
  border-color: #162033;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.xueer-login-next:hover,
.xueer-account-auth .xueer-login-next.button:hover {
  background: #243247;
  border-color: #243247;
  color: #fff;
}

.xueer-login-flow__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #9aa1ae;
  font-size: 13px;
}

.xueer-login-flow__divider::before,
.xueer-login-flow__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6e9ef;
}

.xueer-login-flow__social {
  margin-bottom: 8px;
}

.xueer-google-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.xueer-google-login.is-busy {
  opacity: .7;
  pointer-events: none;
}

.xueer-google-login__native {
  display: flex;
  justify-content: center;
  min-height: 44px;
  width: 100%;
}

.xueer-google-login__native > div {
  margin: 0 auto !important;
}

.xueer-google-login__error {
  margin: 0;
  color: #b32d2e;
  font-size: 13px;
  text-align: center;
}

.xueer-google-login__origin {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #8a919f;
  text-align: center;
  word-break: break-all;
}

.xueer-google-login__origin code {
  font-size: 11px;
}

.xueer-google-login__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #d5dae3;
  border-radius: 999px;
  background: #fff;
  color: #162033;
  font-size: 15px;
  font-weight: 600;
  cursor: not-allowed;
  opacity: .92;
}

.xueer-google-login__hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #8a919f;
  text-align: center;
}

.xueer-google-login__hint a {
  color: #162033;
  font-weight: 600;
}

.xueer-login-flow__social--register {
  margin-bottom: 4px;
}

.xueer-login-flow__create {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
}

.xueer-login-flow__create a {
  color: #162033;
  font-weight: 600;
  text-decoration: none;
}

.xueer-login-flow__create a:hover {
  color: #8f7044;
}

.xueer-login-back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7385;
  font-size: 13px;
  cursor: pointer;
}

.xueer-login-back:hover {
  color: #162033;
}

.xueer-login-flow__identity {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3f5f8;
  color: #162033;
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}

.xueer-account-auth--hub .xueer-login-flow__title {
  display: none;
}

@media (max-width: 767px) {
  .woocommerce-account .woocommerce {
    padding: 12px;
  }

  .woocommerce-account .entry-content,
  .woocommerce-account .site-main .container {
    padding: 0 12px;
  }

  .xueer-account-logged-in .page-title,
  .xueer-account-logged-in .entry-title,
  .xueer-account-logged-in .woocommerce-account h1.page-title,
  body.xueer-account-guest .page-title,
  body.xueer-account-guest .entry-title,
  body.xueer-account-guest .woocommerce-account h1.page-title {
    display: none;
  }
}

.xueer-account-center.is-logged-in {
  max-width: 640px;
  margin: 0 auto;
}

.xueer-account-logged-in .site-main .container,
.xueer-account-logged-in .entry-content {
  padding-left: 0;
  padding-right: 0;
}

.xueer-account-logged-in .woocommerce-account .woocommerce {
  padding: 0;
}

.xueer-account-dashboard-view .site-footer {
  margin-top: 0;
}

/* Sub-page header */
.xueer-account-subheader {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 20;
}

.xueer-account-subheader__back {
  flex-shrink: 0;
  font-size: 13px;
  color: #666;
  text-decoration: none;
}

.xueer-account-subheader__back::before {
  content: "‹ ";
}

.xueer-account-subheader__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

/* Dashboard shell */
.xueer-member-center {
  background: #f5f5f5;
  padding-bottom: 16px;
}

.xueer-member-hero {
  background: linear-gradient(135deg, #ff6a2b 0%, #ff5000 55%, #ff7a45 100%);
  color: #fff;
  padding: 18px 16px 14px;
}

.xueer-member-hero__main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.xueer-member-hero__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .2);
  flex-shrink: 0;
}

.xueer-member-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.xueer-member-hero__name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.xueer-member-hero__badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 11px;
  background: rgba(0, 0, 0, .18);
  font-size: 11px;
  font-weight: 600;
}

.xueer-member-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.xueer-member-stat {
  text-align: center;
}

.xueer-member-stat strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.xueer-member-stat span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: .9;
}

.xueer-member-banner {
  margin: 10px 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.xueer-member-banner__text strong {
  display: block;
  font-size: 14px;
  color: #ff5000;
  margin-bottom: 4px;
}

.xueer-member-banner__text span {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}

.xueer-member-card {
  margin: 10px 12px 0;
  padding: 14px 12px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.xueer-member-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.xueer-member-card__head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

.xueer-member-card__head a {
  font-size: 12px;
  color: #888;
  text-decoration: none;
}

/* Order shortcuts */
.xueer-member-order-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.xueer-member-order-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
}

.xueer-member-order-item__icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff5f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xueer-member-order-item__icon::before {
  content: "";
  width: 22px;
  height: 22px;
  background: #ff5000;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.xueer-member-order-item__icon--pay::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
}

.xueer-member-order-item__icon--ship::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M3 7h11v8H3z'/%3E%3Cpath d='M14 10h4l3 3v2h-7v-5z'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Ccircle cx='18' cy='17' r='2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M3 7h11v8H3z'/%3E%3Cpath d='M14 10h4l3 3v2h-7v-5z'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Ccircle cx='18' cy='17' r='2'/%3E%3C/svg%3E");
}

.xueer-member-order-item__icon--done::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M20 7L10 17l-5-5'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M20 7L10 17l-5-5'/%3E%3C/svg%3E");
}

.xueer-member-order-item__icon--all::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='4' y='4' width='7' height='7' rx='1'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='4' y='4' width='7' height='7' rx='1'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1'/%3E%3C/svg%3E");
}

.xueer-member-order-item__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.xueer-member-order-item__label {
  font-size: 12px;
  color: #444;
  line-height: 1.2;
  text-align: center;
}

/* Service grid */
.xueer-member-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
}

.xueer-member-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
}

.xueer-member-service-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xueer-member-service-item__icon::before {
  content: "";
  width: 20px;
  height: 20px;
  background: #666;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.xueer-member-service-item__icon--address::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M12 21s7-5.2 7-11a7 7 0 1 0-14 0c0 5.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M12 21s7-5.2 7-11a7 7 0 1 0-14 0c0 5.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

.xueer-member-service-item__icon--profile::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M5 20c1.5-4 13.5-4 14 0'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M5 20c1.5-4 13.5-4 14 0'/%3E%3C/svg%3E");
}

.xueer-member-service-item__icon--track::before {
  background: #ff5000;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 7h16v10H4z'/%3E%3Cpath d='M4 11h16'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 7h16v10H4z'/%3E%3Cpath d='M4 11h16'/%3E%3C/svg%3E");
}

.xueer-member-service-item__icon--store::before {
  background: #00843d;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 10h16l-1 9H5L4 10z'/%3E%3Cpath d='M6 10V6h12v4'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 10h16l-1 9H5L4 10z'/%3E%3Cpath d='M6 10V6h12v4'/%3E%3C/svg%3E");
}

.xueer-member-service-item__icon--line::before {
  background: #06c755;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h2.4l2.2 3.3a.8.8 0 0 0 1.3 0L12.1 17H20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h2.4l2.2 3.3a.8.8 0 0 0 1.3 0L12.1 17H20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
}

.xueer-member-service-item__icon--logout::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M10 5H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M14 12H4'/%3E%3Cpath d='M18 8l4 4-4 4'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M10 5H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M14 12H4'/%3E%3Cpath d='M18 8l4 4-4 4'/%3E%3C/svg%3E");
}

.xueer-member-service-item__label {
  font-size: 12px;
  color: #444;
  line-height: 1.2;
  text-align: center;
}

/* Sub-page content polish */
.xueer-account-logged-in:not(.xueer-account-dashboard-view) .xueer-account-content {
  background: #f5f5f5;
  min-height: 50vh;
  padding: 12px;
}

.xueer-account-logged-in .woocommerce-orders-table,
.xueer-account-logged-in .woocommerce-Addresses,
.xueer-account-logged-in .woocommerce-EditAccountForm,
.xueer-account-logged-in .woocommerce-address-fields {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.xueer-account-logged-in .woocommerce-MyAccount-content > p:first-child {
  display: none;
}

.xueer-account-logged-in .woocommerce table.shop_table {
  border: 0;
  font-size: 13px;
}

.xueer-account-logged-in .woocommerce table.shop_table th,
.xueer-account-logged-in .woocommerce table.shop_table td {
  border-color: #f0f0f0;
}

.xueer-account-logged-in .woocommerce .button,
.xueer-account-logged-in .woocommerce button.button {
  min-height: 40px;
  border-radius: 20px;
  background: #ff5000;
  border-color: #ff5000;
  color: #fff;
}

@media (min-width: 768px) {
  .xueer-member-center {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  }
}

/* Tablet only — desktop (992px+) uses the wider grid layout below and must
   never inherit this narrower cap, regardless of stylesheet source order or
   CSS-optimizer plugins that may re-merge/re-order rules on the live site. */
@media (min-width: 768px) and (max-width: 991px) {
  .xueer-account-center.is-logged-in {
    max-width: 720px;
    padding: 16px 0 24px;
  }
}

/* Desktop luxury login — Yahoo-like card */
@media (min-width: 992px) {
  body.xueer-account-guest .site-main {
    padding: 36px 20px 56px;
    background:
      radial-gradient(ellipse at 18% 20%, rgba(176, 141, 91, .12), transparent 42%),
      linear-gradient(160deg, #dfe4ec 0%, #eef0f3 45%, #e7ebf2 100%);
  }

  body.xueer-account-guest .woocommerce-account .woocommerce {
    padding: 0;
    max-width: none;
  }

  body.xueer-account-guest .entry-content,
  body.xueer-account-guest .site-main .container {
    max-width: none;
    padding: 0 20px;
  }

  body.xueer-account-guest .xueer-account-center.is-guest {
    max-width: 980px;
    margin: 0 auto;
  }

  .xueer-account-promo--mobile {
    display: none;
  }

  .xueer-account-auth__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 400px;
    min-height: 540px;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 22px 56px rgba(22, 32, 51, .14);
  }

  .xueer-account-auth__brand {
    display: flex;
    align-items: stretch;
    padding: 48px 42px;
    color: #f7f5f1;
    background:
      radial-gradient(circle at top right, rgba(176, 141, 91, .2), transparent 42%),
      linear-gradient(145deg, #162033 0%, #1e2b40 55%, #243247 100%);
  }

  .xueer-account-auth__brand-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    max-width: 360px;
  }

  .xueer-account-auth__brand-logo .xueer-site-logo {
    color: #d4b98a;
  }

  .xueer-account-auth__brand-logo .xueer-site-logo__zh {
    color: rgba(255, 255, 255, .72);
  }

  .xueer-account-auth__brand-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: .04em;
    color: #fff;
  }

  .xueer-account-auth__brand-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .68);
    letter-spacing: .03em;
  }

  .xueer-account-auth__brand-list {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .xueer-account-auth__brand-list li {
    position: relative;
    padding-left: 22px;
    font-size: 13px;
    color: rgba(255, 255, 255, .84);
    line-height: 1.5;
  }

  .xueer-account-auth__brand-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #b08d5b;
    box-shadow: 0 0 0 4px rgba(176, 141, 91, .18);
  }

  .xueer-account-auth__main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 36px 36px;
    background: #fff;
  }

  .xueer-login-flow__title {
    font-size: 26px;
    margin-bottom: 22px;
  }

  .xueer-account-auth__tabs {
    display: flex;
    gap: 28px;
    margin: 0 0 28px;
    padding-bottom: 0;
    border-bottom: 1px solid #e8ecf2;
  }

  .xueer-account-auth__tab {
    min-height: auto;
    padding: 0 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #8a919f;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
  }

  .xueer-account-auth__tab.is-active {
    color: #162033;
    background: transparent;
    border-bottom-color: #b08d5b;
  }

  .xueer-account-auth__heading {
    margin-bottom: 28px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 400;
    color: #162033;
  }

  .xueer-account-auth .woocommerce-form-login,
  .xueer-account-auth .woocommerce-form-register {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
  }

  .xueer-account-auth label {
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: #3a4252;
    font-weight: 600;
  }

  .xueer-account-auth input.input-text {
    min-height: 50px;
    border: 1px solid #d5dae3;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
  }

  .xueer-account-auth input.input-text:focus {
    outline: none;
    border-color: #162033;
    box-shadow: 0 0 0 3px rgba(22, 32, 51, .1);
    background: #fff;
  }

  .xueer-account-auth .woocommerce-button.button,
  .xueer-account-auth .xueer-login-next.button {
    min-height: 50px;
    border-radius: 999px;
    background: #162033;
    border: 0;
    font-size: 16px;
    letter-spacing: .02em;
    text-transform: none;
    font-weight: 600;
    transition: background .2s ease, box-shadow .2s ease;
  }

  .xueer-account-auth .woocommerce-button.button:hover,
  .xueer-account-auth .xueer-login-next.button:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(22, 32, 51, .18);
    background: #243247;
    color: #fff;
  }

  .xueer-account-auth .woocommerce-form-login__rememberme {
    font-size: 13px;
    color: #444;
  }

  .xueer-account-auth .woocommerce-LostPassword {
    margin-top: 14px;
    text-align: left;
  }

  .xueer-account-auth .woocommerce-LostPassword a {
    color: #6b7385;
    text-decoration: none;
  }

  .xueer-account-auth .woocommerce-LostPassword a:hover {
    color: #162033;
  }

  /* Logged-in member center — premium ink/bronze (matches checkout) */
  body.xueer-yahoo-account-desktop {
    --ac-ink: #162033;
    --ac-ink-soft: #243247;
    --ac-pearl: #f5f3ef;
    --ac-champagne: #e8dfd0;
    --ac-accent: #8f7044;
    --ac-accent-soft: #b08d5b;
    --ac-price: #8b4a3b;
    --ac-line: #e3e6ec;
    --ac-shadow: 0 4px 24px rgba(22, 32, 51, .06);
  }

  body.xueer-yahoo-account-desktop .site-main {
    padding: 24px 20px 48px;
    background: var(--ac-pearl);
  }

  body.xueer-yahoo-account-desktop .entry-content,
  body.xueer-yahoo-account-desktop .site-main .container {
    max-width: none;
    padding: 0 20px;
  }

  body.xueer-yahoo-account-desktop .woocommerce-account .woocommerce {
    padding: 0;
    max-width: none;
  }

  body.xueer-yahoo-account-desktop .xueer-mhub {
    display: none !important;
  }

  .xueer-account-center.is-logged-in {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-areas: "sidebar content";
    gap: 20px;
    width: 100%;
    max-width: var(--container, 1200px);
    margin: 0 auto;
    padding: 0 16px;
    align-items: start;
    box-sizing: border-box;
  }

  .xueer-account-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 20px;
    padding: 16px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--ac-line);
    box-shadow: var(--ac-shadow);
    color: var(--ac-ink);
  }

  .xueer-account-content {
    grid-area: content;
    width: 100%;
    min-width: 0;
  }

  .xueer-account-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .xueer-account-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
  }

  .xueer-account-sidebar__link:hover {
    background: #faf7f2;
    color: var(--ac-ink);
  }

  .xueer-account-sidebar__link.is-active {
    background: linear-gradient(135deg, var(--ac-ink) 0%, var(--ac-ink-soft) 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(22, 32, 51, .16);
  }

  .xueer-account-sidebar__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 6px;
    background: var(--ac-pearl);
    position: relative;
  }

  .xueer-account-sidebar__link.is-active .xueer-account-sidebar__icon,
  .xueer-account-sidebar__link:hover .xueer-account-sidebar__icon {
    background: var(--ac-champagne);
  }

  .xueer-account-sidebar__link.is-active .xueer-account-sidebar__icon {
    background: rgba(255, 255, 255, .14);
  }

  .xueer-account-sidebar__icon::before {
    content: "";
    position: absolute;
    inset: 5px;
    background: #6b7385;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
  }

  .xueer-account-sidebar__link.is-active .xueer-account-sidebar__icon::before,
  .xueer-account-sidebar__link:hover .xueer-account-sidebar__icon::before {
    background: var(--ac-accent);
  }

  .xueer-account-sidebar__link.is-active .xueer-account-sidebar__icon::before {
    background: #fff;
  }

  .xueer-account-sidebar__icon--overview::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 10.5L12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1v-9.5z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 10.5L12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1v-9.5z'/%3E%3C/svg%3E");
  }

  .xueer-account-sidebar__icon--orders::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='6' width='16' height='14' rx='1'/%3E%3Cpath d='M8 6V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='6' width='16' height='14' rx='1'/%3E%3Cpath d='M8 6V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
  }

  .xueer-account-sidebar__icon--address::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s7-5.2 7-11a7 7 0 1 0-14 0c0 5.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s7-5.2 7-11a7 7 0 1 0-14 0c0 5.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
  }

  .xueer-account-sidebar__icon--profile::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M5 20a7 7 0 0 1 14 0'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M5 20a7 7 0 0 1 14 0'/%3E%3C/svg%3E");
  }

  .xueer-account-sidebar__icon--track::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 7h11v8H3z'/%3E%3Cpath d='M14 10h3l3 3v2h-6v-5z'/%3E%3Ccircle cx='7.5' cy='17' r='1.5'/%3E%3Ccircle cx='17.5' cy='17' r='1.5'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 7h11v8H3z'/%3E%3Cpath d='M14 10h3l3 3v2h-6v-5z'/%3E%3Ccircle cx='7.5' cy='17' r='1.5'/%3E%3Ccircle cx='17.5' cy='17' r='1.5'/%3E%3C/svg%3E");
  }

  .xueer-account-sidebar__icon--logout::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M10 5H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M14 12H4'/%3E%3Cpath d='M18 8l4 4-4 4'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M10 5H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M14 12H4'/%3E%3Cpath d='M18 8l4 4-4 4'/%3E%3C/svg%3E");
  }

  .xueer-account-subheader {
    display: none;
  }

  .xueer-yahoo-dash {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .xueer-yahoo-dash__hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 30px 28px;
    border-radius: 16px;
    background: linear-gradient(120deg, var(--ac-ink) 0%, var(--ac-ink-soft) 55%, #4a3a22 100%);
    color: #fff;
    border: none;
    box-shadow: 0 16px 34px rgba(22, 32, 51, .26);
    overflow: hidden;
  }

  .xueer-yahoo-dash__hero::before {
    content: "";
    position: absolute;
    top: -60%;
    right: -6%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 199, 141, .22), transparent 70%);
    pointer-events: none;
  }

  .xueer-yahoo-dash__identity {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
  }

  .xueer-yahoo-dash__avatar {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
  }

  .xueer-yahoo-dash__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid var(--ac-champagne);
    background: var(--ac-pearl);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  }

  .xueer-yahoo-dash__avatar-badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ac-champagne) 0%, var(--ac-accent) 100%);
    border: 2px solid var(--ac-ink);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  }

  .xueer-yahoo-dash__avatar-badge::before {
    content: "";
    position: absolute;
    inset: 5px;
    background: #fff;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2l2.7 6.6 7.1.6-5.4 4.6 1.7 6.9L12 17l-6.1 3.7 1.7-6.9-5.4-4.6 7.1-.6L12 2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2l2.7 6.6 7.1.6-5.4 4.6 1.7 6.9L12 17l-6.1 3.7 1.7-6.9-5.4-4.6 7.1-.6L12 2z'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
  }

  .xueer-yahoo-dash__name {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .xueer-yahoo-dash__badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ac-champagne) 0%, var(--ac-accent) 100%);
    color: #2a2013;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    vertical-align: middle;
  }

  .xueer-yahoo-dash__email {
    margin: 0 0 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, .62);
    word-break: break-all;
  }

  .xueer-yahoo-dash__address-link {
    display: inline-block;
    font-size: 12px;
    color: var(--ac-champagne);
    text-decoration: none;
  }

  .xueer-yahoo-dash__address-link:hover {
    color: #fff;
    text-decoration: underline;
  }

  .xueer-yahoo-dash__orders {
    padding: 18px 20px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--ac-line);
    box-shadow: var(--ac-shadow);
  }

  .xueer-yahoo-dash__orders-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }

  .xueer-yahoo-dash__orders-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--ac-ink);
  }

  .xueer-yahoo-dash__orders-all {
    font-size: 12px;
    color: #6b7385;
    text-decoration: none;
  }

  .xueer-yahoo-dash__orders-all:hover {
    color: var(--ac-accent);
  }

  .xueer-yahoo-dash__orders-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .xueer-yahoo-dash__order-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ac-ink);
    transition: background .2s ease;
  }

  .xueer-yahoo-dash__order-item:hover {
    background: var(--ac-pearl);
  }

  .xueer-yahoo-dash__order-icon {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--ac-pearl);
  }

  .xueer-yahoo-dash__order-icon::before {
    content: "";
    position: absolute;
    inset: 7px;
    background: var(--ac-accent);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
  }

  .xueer-yahoo-dash__order-icon--pay {
    background: #f7e6bf;
  }
  .xueer-yahoo-dash__order-icon--pay::before {
    background: #a3762b;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Ccircle cx='7' cy='14.5' r='1'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Ccircle cx='7' cy='14.5' r='1'/%3E%3C/svg%3E");
  }

  .xueer-yahoo-dash__order-icon--ship {
    background: #dbe9f6;
  }
  .xueer-yahoo-dash__order-icon--ship::before {
    background: #3a6ea5;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 8l9-5 9 5-9 5-9-5z'/%3E%3Cpath d='M3 8v9l9 5 9-5V8'/%3E%3Cpath d='M12 13v9'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 8l9-5 9 5-9 5-9-5z'/%3E%3Cpath d='M3 8v9l9 5 9-5V8'/%3E%3Cpath d='M12 13v9'/%3E%3C/svg%3E");
  }

  .xueer-yahoo-dash__order-icon--done {
    background: #ddf0e1;
  }
  .xueer-yahoo-dash__order-icon--done::before {
    background: #2f7d4f;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l3 3 5-6'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l3 3 5-6'/%3E%3C/svg%3E");
  }

  .xueer-yahoo-dash__order-icon--refund {
    background: #f7dfe2;
  }
  .xueer-yahoo-dash__order-icon--refund::before {
    background: #a4415a;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 14l-4-4 4-4'/%3E%3Cpath d='M5 10h9a5 5 0 0 1 0 10h-2'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 14l-4-4 4-4'/%3E%3Cpath d='M5 10h9a5 5 0 0 1 0 10h-2'/%3E%3C/svg%3E");
  }

  .xueer-yahoo-dash__order-icon--all::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='6' width='16' height='14' rx='1'/%3E%3Cpath d='M8 6V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='6' width='16' height='14' rx='1'/%3E%3Cpath d='M8 6V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
  }

  .xueer-yahoo-dash__order-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--ac-price);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
  }

  .xueer-yahoo-dash__order-label {
    font-size: 12px;
    color: #4a5568;
    text-align: center;
  }

  .xueer-yahoo-dash__stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    gap: 10px;
    flex-shrink: 0;
  }

  .xueer-yahoo-dash__stat {
    text-align: center;
    padding: 14px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: none;
    backdrop-filter: blur(2px);
  }

  .xueer-yahoo-dash__stat strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
    color: var(--ac-champagne);
  }

  .xueer-yahoo-dash__stat span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, .68);
  }

  .xueer-yahoo-dash__notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 14px 16px 14px 18px;
    border-radius: 12px;
    background: linear-gradient(120deg, var(--ac-champagne) 0%, #f3e6c9 100%);
    border: 1px solid #e0cd9c;
    box-shadow: var(--ac-shadow);
  }

  .xueer-yahoo-dash__notice p {
    margin: 0;
    flex: 1 1 auto;
    font-size: 13px;
    font-weight: 600;
    color: #4a3a1e;
    line-height: 1.5;
  }

  .xueer-yahoo-dash__notice-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ac-ink) 0%, var(--ac-ink-soft) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease;
  }

  .xueer-yahoo-dash__notice-cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(22, 32, 51, .22);
  }

  .xueer-yahoo-dash__notice-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    position: relative;
  }

  .xueer-yahoo-dash__notice-icon::before {
    content: "i";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--ac-accent);
    font-size: 13px;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
  }

  /* —— Latest order tracking strip (mirrors JD's "您的訂單已送達…") —— */
  .xueer-yahoo-dash__track {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 14px 16px 14px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--ac-line);
    box-shadow: var(--ac-shadow);
  }

  .xueer-yahoo-dash__track-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ac-pearl);
    position: relative;
  }

  .xueer-yahoo-dash__track-icon::before {
    content: "";
    position: absolute;
    inset: 6px;
    background: var(--ac-accent);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 8l9-5 9 5-9 5-9-5z'/%3E%3Cpath d='M3 8v9l9 5 9-5V8'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 8l9-5 9 5-9 5-9-5z'/%3E%3Cpath d='M3 8v9l9 5 9-5V8'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
  }

  .xueer-yahoo-dash__track p {
    flex: 1 1 auto;
    margin: 0;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
  }

  .xueer-yahoo-dash__track p strong {
    color: var(--ac-ink);
    margin-right: 4px;
  }

  .xueer-yahoo-dash__track-cta {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--ac-accent);
    text-decoration: none;
    white-space: nowrap;
  }

  .xueer-yahoo-dash__track-cta:hover {
    color: var(--ac-ink);
    text-decoration: underline;
  }

  /* —— Frequently purchased products (mirrors JD's "常購清單") —— */
  .xueer-yahoo-dash__frequent {
    padding: 18px 20px 20px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--ac-line);
    box-shadow: var(--ac-shadow);
  }

  .xueer-yahoo-dash__frequent-head {
    margin-bottom: 14px;
  }

  .xueer-yahoo-dash__frequent-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--ac-ink);
  }

  .xueer-yahoo-dash__frequent-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .xueer-yahoo-dash__frequent-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: var(--ac-ink);
  }

  .xueer-yahoo-dash__frequent-img {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--ac-pearl);
    border: 1px solid var(--ac-line);
  }

  .xueer-yahoo-dash__frequent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .xueer-yahoo-dash__frequent-count {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(22, 32, 51, .72);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
  }

  .xueer-yahoo-dash__frequent-name {
    font-size: 12px;
    color: #4a5568;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .xueer-yahoo-dash__frequent-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--ac-price);
  }

  .xueer-yahoo-dash__panel {
    margin-top: 0;
    padding: 22px 20px 24px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--ac-line);
    box-shadow: var(--ac-shadow);
  }

  .xueer-yahoo-dash__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .xueer-yahoo-dash__tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
    padding: 18px 16px;
    text-decoration: none;
    color: var(--ac-ink);
    border: 1px solid var(--ac-line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  }

  .xueer-yahoo-dash__tile:nth-child(3n),
  .xueer-yahoo-dash__tile:nth-last-child(-n+3) {
    border-right: 1px solid var(--ac-line);
    border-bottom: 1px solid var(--ac-line);
  }

  .xueer-yahoo-dash__tile:hover {
    background: #fff;
    border-color: var(--ac-accent-soft);
    box-shadow: 0 10px 24px rgba(22, 32, 51, .08);
    transform: translateY(-1px);
  }

  .xueer-yahoo-dash__tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ac-champagne) 0%, #f5f1ea 100%);
    position: relative;
  }

  .xueer-yahoo-dash__tile-icon::before {
    content: "";
    position: absolute;
    inset: 10px;
    background: var(--ac-accent);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
  }

  .xueer-yahoo-dash__tile-icon--orders::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='6' width='16' height='14' rx='1'/%3E%3Cpath d='M8 6V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='6' width='16' height='14' rx='1'/%3E%3Cpath d='M8 6V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
  }

  .xueer-yahoo-dash__tile-icon--address::before,
  .xueer-yahoo-dash__tile-icon--profile::before,
  .xueer-yahoo-dash__tile-icon--track::before,
  .xueer-yahoo-dash__tile-icon--coupon::before,
  .xueer-yahoo-dash__tile-icon--cart::before,
  .xueer-yahoo-dash__tile-icon--store::before,
  .xueer-yahoo-dash__tile-icon--line::before,
  .xueer-yahoo-dash__tile-icon--logout::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E");
  }

  .xueer-yahoo-dash__tile-icon--address::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s7-5.2 7-11a7 7 0 1 0-14 0c0 5.8 7 11 7 11z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s7-5.2 7-11a7 7 0 1 0-14 0c0 5.8 7 11 7 11z'/%3E%3C/svg%3E");
  }

  .xueer-yahoo-dash__tile-icon--profile::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M5 20a7 7 0 0 1 14 0'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M5 20a7 7 0 0 1 14 0'/%3E%3C/svg%3E");
  }

  .xueer-yahoo-dash__tile-icon--track::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 7h11v8H3z'/%3E%3Cpath d='M14 10h3l3 3v2h-6v-5z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 7h11v8H3z'/%3E%3Cpath d='M14 10h3l3 3v2h-6v-5z'/%3E%3C/svg%3E");
  }

  .xueer-yahoo-dash__tile-icon--coupon::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 9h16v6H4z'/%3E%3Cpath d='M9 9v6'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 9h16v6H4z'/%3E%3Cpath d='M9 9v6'/%3E%3C/svg%3E");
  }

  .xueer-yahoo-dash__tile-icon--cart::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='17' cy='20' r='1'/%3E%3Cpath d='M3 4h2l2 12h10l2-8H7'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='17' cy='20' r='1'/%3E%3Cpath d='M3 4h2l2 12h10l2-8H7'/%3E%3C/svg%3E");
  }

  .xueer-yahoo-dash__tile-icon--store::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 10l2-6h12l2 6v9H4z'/%3E%3Cpath d='M4 10h16'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 10l2-6h12l2 6v9H4z'/%3E%3Cpath d='M4 10h16'/%3E%3C/svg%3E");
  }

  .xueer-yahoo-dash__tile-icon--logout::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M10 5H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M14 12H4'/%3E%3Cpath d='M18 8l4 4-4 4'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M10 5H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M14 12H4'/%3E%3Cpath d='M18 8l4 4-4 4'/%3E%3C/svg%3E");
  }

  .xueer-yahoo-dash__tile-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ac-ink);
    line-height: 1.3;
  }

  .xueer-yahoo-dash__tile-desc {
    font-size: 12px;
    color: #6b7385;
    line-height: 1.45;
    max-width: none;
  }

  .xueer-yahoo-dash__bind {
    margin-top: 0;
    padding: 20px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff 0%, #faf7f2 100%);
    border: 1px solid var(--ac-line);
    box-shadow: var(--ac-shadow);
  }

  .xueer-yahoo-dash__bind-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .xueer-yahoo-dash__bind-head strong {
    font-size: 16px;
    color: var(--ac-ink);
  }

  .xueer-yahoo-dash__bind-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--ac-champagne);
    color: var(--ac-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
  }

  .xueer-yahoo-dash__bind-text {
    margin: 0 0 14px;
    font-size: 13px;
    color: #6b7385;
    line-height: 1.5;
  }

  .xueer-yahoo-dash__bind-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, var(--ac-ink) 0%, var(--ac-ink-soft) 100%);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease;
  }

  .xueer-yahoo-dash__bind-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(22, 32, 51, .18);
  }

  .xueer-account-logged-in:not(.xueer-account-dashboard-view) .xueer-account-content {
    background: #fff;
    border: 1px solid var(--ac-line);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--ac-shadow);
  }

  .xueer-account-logged-in .woocommerce-orders-table,
  .xueer-account-logged-in .woocommerce-EditAccountForm,
  .xueer-account-logged-in .woocommerce-address-fields {
    border-radius: 12px;
    border: 1px solid var(--ac-line);
    box-shadow: none;
    padding: 20px;
  }

  .xueer-account-logged-in .woocommerce .button,
  .xueer-account-logged-in .woocommerce button.button {
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ac-ink) 0%, var(--ac-ink-soft) 100%);
    border: 0;
    color: #fff;
    font-weight: 600;
  }

  .xueer-account-logged-in .woocommerce .button:hover,
  .xueer-account-logged-in .woocommerce button.button:hover {
    background: var(--ac-ink-soft);
    color: #fff;
  }

  /* "No orders yet" / other WooCommerce account notices — replace the
     plugin's default colored-top-border box with a card that matches
     the rest of the account center. */
  .xueer-account-content .woocommerce-notice,
  .xueer-account-content .woocommerce-info,
  .xueer-account-content .woocommerce-message,
  .xueer-account-content .woocommerce-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    padding: 20px 22px;
    border: 1px solid var(--ac-line) !important;
    border-radius: 12px;
    background: #fff;
    color: #4a5568;
    font-size: 13px;
    list-style: none;
  }

  .xueer-account-content .woocommerce-notice svg,
  .xueer-account-content .woocommerce-message svg {
    color: var(--ac-accent-soft);
    flex-shrink: 0;
  }

  .xueer-account-content .woocommerce-notice .button,
  .xueer-account-content .woocommerce-message .button {
    margin: 0;
  }

  /* Address book — JD.com-style stacked cards: badge + icon header,
     label/value rows, edit link bottom-right. */
  .xueer-address-hint {
    margin: 0 0 14px;
    font-size: 13px;
    color: #6b7385;
  }

  .xueer-account-content .woocommerce-Addresses.xueer-address-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .xueer-address-card {
    position: relative;
    padding: 18px 22px 16px;
    border: 1px solid var(--ac-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--ac-shadow);
  }

  .xueer-address-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ac-line);
  }

  .xueer-address-card__icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--ac-pearl);
    position: relative;
  }

  .xueer-address-card__icon::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 3px;
    background: var(--ac-accent);
    opacity: .65;
  }

  .xueer-address-card__icon--pin::before {
    inset: 6px 8px;
    border-radius: 50% 50% 50% 4px;
  }

  .xueer-address-card__head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--ac-ink);
    flex: 1;
  }

  .xueer-address-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fdece0;
    color: #c9622a;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }

  .xueer-address-card__rows {
    display: grid;
    gap: 8px;
    margin: 0;
  }

  .xueer-address-card__row {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
  }

  .xueer-address-card__row dt {
    margin: 0;
    font-size: 13px;
    color: #8a92a3;
    font-weight: 500;
  }

  .xueer-address-card__row dd {
    margin: 0;
    font-size: 13px;
    color: var(--ac-ink);
    line-height: 1.6;
    word-break: break-word;
  }

  .xueer-address-card__empty {
    font-style: normal;
    font-size: 13px;
    color: #8a92a3;
  }

  .xueer-address-card__foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--ac-line);
  }

  .xueer-address-card__edit,
  .xueer-address-card__setdefault,
  .xueer-address-card__delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
  }

  .xueer-address-card__edit {
    background: var(--ac-champagne);
    color: var(--ac-accent);
  }

  .xueer-address-card__edit:hover {
    background: var(--ac-ink);
    color: #fff;
  }

  .xueer-address-card__setdefault {
    background: transparent;
    border: 1px solid var(--ac-line);
    color: #6b7385;
  }

  .xueer-address-card__setdefault:hover {
    border-color: var(--ac-accent);
    color: var(--ac-accent);
  }

  .xueer-address-card__delete {
    background: transparent;
    color: #a3453b;
  }

  .xueer-address-card__delete:hover {
    background: #fbeceb;
  }

  /* —— Shipping address book: header row + "add address" + empty state —— */
  .xueer-address-book {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .xueer-address-book__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .xueer-address-book__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--ac-ink);
  }

  .xueer-address-book__add {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--ac-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease;
  }

  .xueer-address-book__add:hover {
    background: var(--ac-ink-soft);
  }

  .xueer-address-card--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    text-align: center;
    border-style: dashed;
  }

  /* —— Add / edit address form card —— */
  .xueer-address-form-card {
    padding: 22px 24px;
    border: 1px solid var(--ac-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--ac-shadow);
    max-width: 520px;
  }

  .xueer-address-form-card__title {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ac-ink);
  }

  .xueer-address-form__row {
    margin-bottom: 14px;
  }

  .xueer-address-form__row--split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .xueer-address-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #6b7385;
    font-weight: 500;
  }

  .xueer-address-form input[type="text"],
  .xueer-address-form select {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--ac-line);
    border-radius: 8px;
    font-size: 14px;
    color: var(--ac-ink);
    background: #fff;
    box-sizing: border-box;
  }

  .xueer-address-form input[type="text"]:focus,
  .xueer-address-form select:focus {
    outline: none;
    border-color: var(--ac-accent);
  }

  .xueer-address-form__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 20px;
    font-size: 13px;
    color: var(--ac-ink);
    cursor: pointer;
  }

  .xueer-address-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }

  .xueer-address-form__cancel {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 999px;
    color: #6b7385;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
  }

  .xueer-address-form__submit {
    padding: 10px 28px;
    border: 0;
    border-radius: 999px;
    background: var(--ac-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease;
  }

  .xueer-address-form__submit:hover {
    background: var(--ac-ink-soft);
  }

  .xueer-account-content .woocommerce-Address address {
    font-style: normal;
    font-size: 13px;
    line-height: 1.75;
    color: #4a5568;
  }
}

/* Match the homepage's wider desktop container at large viewports so the
   account center feels like a full-width page instead of a narrow panel. */
@media (min-width: 1200px) {
  .xueer-account-center.is-logged-in {
    max-width: 1240px;
    padding: 0 24px;
  }
}

@media (max-width: 991px) {
  .xueer-account-sidebar {
    display: none !important;
  }

  .xueer-account-center.is-logged-in {
    display: block;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 0 24px;
  }
}

@media (max-width: 767px) {
  .xueer-account-logged-in .site-main {
    padding-bottom: calc(var(--mobile-tabbar-height, 52px) + 8px);
  }
}
