.MyFollow .fas.fa-heart {
  color: red !important;
}
.gray-btn {
  border: medium none;
  display: inline-block;
  font-weight: 500;
  font-size: 16px;
  margin-top: 20px;
  padding: 10px 30px;
  text-align: center;
  text-transform: uppercase;
  -webkit-transition: all 300ms ease-in 0s;
  -o-transition: all 300ms ease-in 0s;
  transition: all 300ms ease-in 0s;
  cursor: pointer;
  border-radius: 4px;
  background: #ddd;
  color: #737373;
}
.gray-btn:hover {
  background: #e76667;
  color: #fff;
}

.active-item {
  display: none;
}

.account-info {
  display: none;
}

.discountcode-info .info {
  display: none;
  background: #9bd7e7;
  color: white;
  font-weight: bold;
  padding: 10px;
  font-size: 18px;
}

.discountcode-info .info.error {
  color: red;
}

.btn-custom04 {
  background: #ff4d4d;
  color: #fff;
  opacity: 0.8;
}
.btn-custom04:hover {
  color: #fff;
  opacity: 1;
}

.btn-cart3 {
  background: #c3c3c3;
  border: #c3c3c3 1px solid;
  color: #fff;
  opacity: 0.8;
  border-radius: 50px;
}
.btn-cart3:hover {
  color: #fff;
  opacity: 1;
}

.btn-custom05 {
  background: #7ac9df;
  color: #fff;
  opacity: 0.5;
}
.btn-custom05:hover,
.btn-custom05.active {
  color: #fff;
  opacity: 1;
}

.activity-cart-list {
}
.activity-cart-list.stick {
  position: fixed;
  width: 100%;
  top: 48px;
  z-index: 9999;
  -webkit-animation: 500ms ease-in-out 0s normal none 1 running fadeInDown;
  animation: 500ms ease-in-out 0s normal none 1 running fadeInDown;
  webkit-box-shadow: 1px 2px 3px 1px rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: 1px 2px 3px 1px rgba(0, 0, 0, 0.3);
  box-shadow: 1px 2px 3px 1px rgba(0, 0, 0, 0.3);
}

[data-bk-link] {
  cursor: pointer;
}

.day.active-cart:not(.disabled) {
  color: red;
  cursor: pointer;
}
.day.active-cart:hover:not(.disabled) {
  color: white;
  background: #0062cc;
  border-radius: 10%;
}
.day.active-cart.active:not(.disabled) {
  color: white;
  background: #0062cc;
  border-radius: 10%;
}

.bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(
    .input-group-btn
  ) {
  padding: 0 10px;
}

.custom-onepage-header .custom-onepage-item {
  display: flex;
  flex: 0 0 90%;
  max-width: 90%;
  flex-direction: row-reverse;
  margin-left: 10%;
  padding: 5px 0;
  align-items: center;
}
.custom-onepage-header .top-icon {
  padding: 0;
}

.index-input-people-num {
  -webkit-appearance: none;
  padding: 15px 40px 15px 15px;
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 5px;
  background: white;
  -webkit-box-shadow: 0 1px 3px -2px #333;
  box-shadow: 0 1px 3px -2px #333;
  font-family: inherit;
  font-size: 15px;
  -webkit-transition: all 150ms ease;
  -o-transition: all 150ms ease;
  transition: all 150ms ease;
}
@media only screen and (min-width: 991px) {
  .header .custom-onepage-header .logo img {
    width: 40%;
  }
}

@media only screen and (max-width: 768px) {
  .btn-item .btn-fav:hover i {
    color: #777;
  }
}

.news-item .word-item h1 {
  color: #000;
  font-size: 20px;
  letter-spacing: 3px;
}

/* Member hub dashboard */
.member-hub-dashboard-shell {
  background: #fff;
}

.member-dashboard {
  color: #243246;
}

.member-dashboard a,
.member-app-panel a {
  text-decoration: none;
}

.member-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  background: #fff;
  color: #777f89;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.member-back-btn:hover,
.member-back-btn:focus {
  border-color: #cfd6dd;
  color: #555f6b;
  box-shadow: 0 4px 12px rgba(32, 52, 78, 0.05);
  transform: translateY(-1px);
}

.member-back-btn:focus-visible {
  outline: 3px solid rgba(85, 95, 107, 0.12);
  outline-offset: 2px;
}

.member-dashboard-card,
.member-app-panel {
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  /*box-shadow: 0 8px 24px rgba(30, 45, 70, .04);*/
}

.member-dashboard-card {
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.member-dashboard-card:hover,
.member-dashboard-card:focus-within {
  border-color: #d8e2ec;
  /*box-shadow: 0 14px 30px rgba(32, 52, 78, 0.08);*/
  transform: translateY(-3px);
}

.member-welcome-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  padding: 20px 24px;
  margin-bottom: 26px;
}

.member-profile {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 18px;
}

.member-avatar {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(-45deg, #f3d395, #f7e4bb);
  color: #bd7804;
  font-size: 34px;
}

.member-avatar i {
  position: relative;
  left: 1px;
}

.member-profile-copy {
  min-width: 0;
}

.member-welcome-title {
  margin: 0 0 10px;
  color: #17233c;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
}

.member-plan-badge,
.member-remain-pill,
.member-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 18px;
  line-height: 1.3;
  white-space: nowrap;
}

.member-plan-badge {
  padding: 6px 14px;
  background: #fff7e8;
  color: #b8740f;
  font-size: 14px;
  font-weight: 600;
}

.member-expire-card {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 330px;
  max-width: 100%;
  padding: 15px 18px;
  border: 1px solid #f0dfbd;
  border-radius: 10px;
  background: #fffaf1;
}

.member-expire-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #d79b38;
  font-size: 24px;
}

.member-expire-icon i {
  display: block;
  width: 1em;
  height: 1em;
  line-height: 1;
  text-align: center;
}

.member-expire-main {
  color: #243246;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.member-expire-sub {
  margin-top: 4px;
  color: #6f5a2c;
  font-size: 13px;
}

.member-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-bottom: 26px;
}

.member-kpi-card {
  position: relative;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  min-height: 224px;
  gap: 22px;
  overflow: hidden;
  padding: 26px 26px 24px;
  background: #fff;
}

.member-kpi-card::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -78px;
  left: -12%;
  height: 126px;
  border-radius: 35% 35% 0 0 / 100% 100% 0 0;
  opacity: 0.72;
  pointer-events: none;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 991px) {
  .member-kpi-card::after {
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    bottom: -35px;
    opacity: 0.3;
  }
}

.member-kpi-card > * {
  position: relative;
  z-index: 1;
}

.member-kpi-card:hover::after,
.member-kpi-card:focus-within::after {
  opacity: 0.86;
  transform: translateY(-6px) scale(1.02);
}

.member-kpi-blue {
  --kpi-color: #075bbb;
  --kpi-color-dark: #075bbb;
  --kpi-track: #e8eef6;
  --kpi-soft: #edf5ff;
  --kpi-wave: #edf5ff;
  --kpi-btn-shadow: rgba(7, 91, 187, 0.2);
}

.member-kpi-green {
  --kpi-color: #168447;
  --kpi-color-dark: #168447;
  --kpi-track: #e8eef6;
  --kpi-soft: #e9f8ef;
  --kpi-wave: #edf9f2;
  --kpi-btn-shadow: rgba(22, 132, 71, 0.2);
}

.member-kpi-gold {
  --kpi-color: #b97806;
  --kpi-color-dark: #c88705;
  --kpi-track: #e8eef6;
  --kpi-soft: #fff0cf;
  --kpi-wave: #fff4dc;
  --kpi-btn-shadow: rgba(200, 135, 5, 0.2);
}

.member-kpi-blue::after {
  background: var(--kpi-wave);
  /*transform: rotate(-4deg);*/
}

.member-kpi-green::after {
  background: var(--kpi-wave);
  /*transform: rotate(-4deg);*/
}

.member-kpi-gold::after {
  background: var(--kpi-wave);
  /*transform: rotate(3deg);*/
}

.member-donut {
  position: relative;
  width: 130px;
  height: 130px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--kpi-color) 0 var(--progress),
    var(--kpi-track) var(--progress) 100%
  );
  /*box-shadow: 0 12px 28px rgba(28, 52, 86, 0.08);*/
  opacity: 1;
  transform: translateY(0) scale(1);
  will-change: transform, opacity;
  transition:
    filter 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.member-kpi-card:hover .member-donut,
.member-kpi-card:focus-within .member-donut {
  filter: drop-shadow(0 8px 14px rgba(28, 52, 86, 0.08));
  transform: translateY(-2px) scale(1.025);
}

.member-donut.is-donut-animating {
  opacity: 0.72;
  transform: translateY(8px) scale(0.96);
  transition:
    opacity 0.36s ease,
    transform 0.36s ease;
}

.member-donut.is-donut-loaded {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.member-donut::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -50deg,
    rgba(255, 255, 255, 0) 0deg,
    rgba(255, 255, 255, 0) 220deg,
    rgba(255, 255, 255, 0.65) 250deg,
    rgba(255, 255, 255, 0) 285deg,
    rgba(255, 255, 255, 0) 360deg
  );
  opacity: 0;
  pointer-events: none;
  transform: rotate(-80deg);
}

.member-donut.is-donut-animating::after {
  animation: member-donut-sweep 1.25s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.member-donut::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(28, 52, 86, 0.035),
    0 5px 16px rgba(28, 52, 86, 0.06);
  transform: translate(-50%, -50%);
}

.member-donut-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.18;
  text-align: center;
  transition:
    opacity 0.34s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.member-donut.is-donut-animating .member-donut-inner {
  opacity: 0.84;
  transform: translateY(2px) scale(0.96);
}

.member-donut.is-donut-loaded .member-donut-inner {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes member-donut-sweep {
  0% {
    opacity: 0;
    transform: rotate(-80deg);
  }
  18% {
    opacity: 0.58;
  }
  76% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: rotate(300deg);
  }
}

.member-donut-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-bottom: 5px;
  color: var(--kpi-color);
  font-size: 17px;
}

.member-donut-inner strong {
  color: var(--kpi-color);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1px;
}

.member-donut-inner span:last-child {
  margin-top: 2px;
  color: #7b8794;
  font-size: 13px;
}

.member-kpi-copy {
  min-width: 0;
}

.member-kpi-copy h4 {
  margin: 0 0 10px;
  color: #17233c;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.member-kpi-copy p {
  margin: 0 0 10px;
  color: #7b8794;
  font-size: 14px;
  line-height: 1.6;
}

.member-remain-pill {
  margin-bottom: 14px;
  padding: 5px 12px;
  background: var(--kpi-soft);
  color: var(--kpi-color);
  font-size: 13px;
  font-weight: 600;
}

.member-status-pill {
  padding: 5px 13px;
  background: #e9f7ee;
  color: #168348;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.member-kpi-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 38px;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 10px;
  background: var(--kpi-color-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 6px 14px var(--kpi-btn-shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.member-kpi-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.24),
    rgba(255, 255, 255, 0) 58%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.member-kpi-btn i {
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease;
}

.member-kpi-btn:hover,
.member-kpi-btn:focus {
  color: #fff;
  filter: saturate(1.08) brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--kpi-btn-shadow);
}

.member-kpi-btn:hover::after,
.member-kpi-btn:focus::after {
  opacity: 1;
}

.member-kpi-btn:hover i,
.member-kpi-btn:focus i {
  transform: translateX(3px);
}

.member-kpi-btn:focus-visible {
  outline: 3px solid rgba(20, 92, 168, 0.18);
  outline-offset: 3px;
}

.member-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 26px;
  margin-bottom: 26px;
}

.member-info-card {
  padding: 18px 24px 6px 24px;
}

.member-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f5;
}

.member-card-head i {
  color: #2f6fae;
  font-size: 18px;
  transition:
    color 0.22s ease,
    transform 0.22s ease;
}

.member-info-card:hover .member-card-head i,
.member-info-card:focus-within .member-card-head i {
  color: #d79b38;
  transform: translateY(-1px);
}

.member-card-head h4 {
  margin: 0;
  color: #1b2430;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

.member-data-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid #edf1f5;
  color: #3d4552;
  font-size: 15px;
}

.member-data-row:last-child {
  border-bottom: 0;
}

.member-data-row strong {
  color: #607089;
  font-weight: 700;
}

.member-data-row a {
  display: inline-block;
  color: #075bbb;
  font-weight: 700;
  text-decoration: none;
  background-image: linear-gradient(90deg, #075bbb, #d79b38);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  transition:
    color 0.18s ease,
    background-size 0.18s ease;
}

.member-data-row a:hover,
.member-data-row a:focus {
  color: #b97806;
  background-size: 100% 2px;
}

.member-finance-row {
  grid-template-columns: 104px minmax(0, 1fr);
}

.member-app-panel {
  margin-top: 0;
  padding: 32px 42px 36px;
  border: 1px solid #e5eaf0;
  box-shadow: none;
  background:
    /* 上方白色柔光遮罩 */
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.62) 22%,
      rgba(255, 255, 255, 0.22) 48%,
      rgba(255, 255, 255, 0) 72%
    ),
    /* 左下淡粉 */
    radial-gradient(
        circle at 12% 82%,
        rgba(248, 223, 233, 0.75) 0%,
        rgba(248, 223, 233, 0.38) 22%,
        rgba(248, 223, 233, 0) 48%
      ),
    /* 右下淡藍 */
    radial-gradient(
        circle at 88% 86%,
        rgba(204, 241, 251, 0.8) 0%,
        rgba(204, 241, 251, 0.45) 25%,
        rgba(204, 241, 251, 0) 52%
      ),
    /* 中右淡紫 */
    radial-gradient(
        circle at 72% 35%,
        rgba(238, 235, 252, 0.65) 0%,
        rgba(238, 235, 252, 0.28) 32%,
        rgba(238, 235, 252, 0) 58%
      ),
    /* 底色 */
    linear-gradient(180deg, #fcfdff 0%, #fbfbfd 34%, #fbf4f7 68%, #eef6fb 100%);

  background-color: #fbfcff;
}

.member-section-title {
  position: relative;
  margin: 0 0 42px;
  color: #172033;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

.member-section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 52px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #17699b, #d69a29);
  transform: translateX(-50%);
}

.member-app-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 34px 42px;
  max-width: 920px;
  margin: 0 auto;
}

.member-app-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: #111b2d;
  outline: 0;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.member-app-item:hover,
.member-app-item:focus,
.member-app-item.is-active {
  color: #075bbb;
}

.member-app-icon {
  position: relative;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  color: #fff;
  font-size: 30px;
  /*box-shadow: 0 14px 28px rgba(30, 45, 70, 0.14);*/
  isolation: isolate;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.member-app-icon::before,
.member-app-icon::after {
  content: "";
  position: absolute;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.member-app-icon::before {
  top: -5px;
  right: -5px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  opacity: 0.28;
  background: #fff;
  transform: rotate(12deg);
}

.member-app-icon::after {
  bottom: -15px;
  left: -10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  opacity: 0.28;
  background: #fff;
  transform: rotate(-18deg);
}

.member-app-icon i {
  position: relative;
  z-index: 1;
  transition:
    transform 0.22s ease,
    text-shadow 0.22s ease;
}

.member-app-item:hover .member-app-icon,
.member-app-item:focus .member-app-icon,
.member-app-item:focus-visible .member-app-icon,
.member-app-item.is-active .member-app-icon {
  filter: saturate(1.08) brightness(1.03);
  transform: translateY(-5px) scale(1.04);
  /*box-shadow:
    0 20px 34px rgba(16, 47, 72, 0.2),
    0 0 0 5px rgba(255, 255, 255, 0.78),
    0 0 0 6px rgba(20, 92, 168, 0.12);*/
}

.member-app-item:hover .member-app-icon::before,
.member-app-item:focus .member-app-icon::before,
.member-app-item.is-active .member-app-icon::before {
  opacity: 0.38;
  transform: translate(-2px, 2px) rotate(12deg) scale(1.12);
}

.member-app-item:hover .member-app-icon::after,
.member-app-item:focus .member-app-icon::after,
.member-app-item.is-active .member-app-icon::after {
  opacity: 0.34;
  transform: translate(2px, -2px) rotate(-18deg) scale(1.08);
}

.member-app-item:hover .member-app-icon i,
.member-app-item:focus .member-app-icon i,
.member-app-item.is-active .member-app-icon i {
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transform: scale(1.08);
}

.member-app-label {
  position: relative;
  display: block;
  max-width: none;
  color: inherit;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  padding-bottom: 7px;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
  transition: color 0.18s ease;
}

.member-app-label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #145ca8, #d79b38);
  opacity: 0;
  transform: translateX(-50%);
  transition:
    width 0.2s ease,
    opacity 0.2s ease;
}

.member-app-item:hover .member-app-label::after,
.member-app-item:focus .member-app-label::after,
.member-app-item.is-active .member-app-label::after {
  width: 26px;
  opacity: 1;
}

.tone-blue-purple {
  background: linear-gradient(135deg, #4a99fc, #853df4);
}
.tone-blue {
  background: linear-gradient(135deg, #4a90e2, #145ca8);
}
.tone-green {
  background: linear-gradient(135deg, #bbf463, #62bc0c);
}
.tone-orange {
  background: linear-gradient(135deg, #ffb057, #df6f1f);
}
.tone-purple {
  background: linear-gradient(135deg, #9b78ef, #7444c3);
}
.tone-cyan {
  background: linear-gradient(135deg, #38bdf8, #0e7490);
}
.tone-teal {
  background: linear-gradient(135deg, #83f9cd, #11d8b7);
}
.tone-rose {
  background: linear-gradient(135deg, #f17789, #d44d60);
}
.tone-gold {
  background: linear-gradient(135deg, #f2c94c, #b97806);
}
.tone-slate {
  background: linear-gradient(135deg, #aab0b8, #5f6773);
}
.tone-aqua {
  background: linear-gradient(135deg, #35bdd0, #14889a);
}
.tone-emerald {
  background: linear-gradient(135deg, #6fcf97, #219653);
}

@media only screen and (max-width: 1199px) {
  .member-kpi-row,
  .member-summary-row {
    gap: 20px;
  }

  .member-kpi-card {
    grid-template-columns: 110px minmax(0, 1fr);
    padding: 24px 18px;
  }

  .member-donut {
    width: 130px;
    height: 130px;
  }

  .member-donut::before {
    width: 100px;
    height: 100px;
  }

  .member-app-grid {
    gap: 32px 34px;
  }
}

@media only screen and (max-width: 991px) {
  .member-welcome-card {
    align-items: stretch;
    flex-direction: column;
  }

  .member-expire-card {
    flex: 1 1 auto;
    width: 100%;
  }

  .member-kpi-row,
  .member-summary-row {
    grid-template-columns: 1fr;
  }

  .member-kpi-card {
    min-height: 200px;
  }

  .member-app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 500px;
  }
}

@media only screen and (max-width: 575px) {
  .member-hub-dashboard-shell {
    padding-top: 30px;
    padding-bottom: 40px;
  }

  .member-welcome-card,
  .member-info-card {
    padding: 18px 18px 8px 18px;
  }

  .member-welcome-card {
    align-items: center;
    text-align: center;
    padding: 18px;
  }

  .member-profile {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
    text-align: center;
  }

  .member-avatar {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    font-size: 29px;
  }

  .member-welcome-title {
    margin-bottom: 9px;
    font-size: 21px;
  }

  .member-plan-badge {
    justify-content: center;
    margin: 0 auto;
  }

  .member-expire-card {
    align-items: center;
    padding: 14px;
    text-align: left;
  }

  .member-card-head {
    justify-content: center;
    text-align: center;
  }

  .member-kpi-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .member-kpi-copy p {
    line-height: 1.55;
  }

  .member-summary-row {
    margin-bottom: 22px;
  }

  .member-data-row,
  .member-finance-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 11px 0;
  }

  .member-app-panel {
    padding: 28px 16px 30px;
  }

  .member-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
    max-width: 300px;
  }

  .member-app-icon {
    width: 76px;
    height: 76px;
    font-size: 27px;
  }

  .member-app-label {
    font-size: 14px;
  }
}

/* Member update page title */
.member-update-page .custom-title {
  color: #374151;
}

.member-update-page .member-update-heading {
  margin: 0 0 22px !important;
  padding: 0 0 9px;
  border-bottom: 3px solid #0f51a3;
  color: #212529;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.member-update-page .member-update-heading b {
  font-weight: inherit;
}


/* Member update form section headings */
.member-update-page .account-info .custom-title.text-themegreen {
  margin: 26px 0 14px !important;
  padding: 9px 12px;
  border-bottom: 1px solid #d7e2ef;
  border-left: 4px solid #0f51a3;
  background: #f6f9fc;
  color: #0f51a3 !important;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.member-update-page .account-info fieldset > .custom-title.text-themegreen:first-child {
  margin-top: 0 !important;
  background: #edf5fb;
}

.member-update-page .account-info .custom-title.text-themegreen + hr {
  display: none;
}

/* Member update primary category headings */
.member-update-page .account-info .custom-title.text-themegreen.big-category {
  margin: 0 0 22px !important;
  padding: 0 0 10px;
  border-bottom: 2px solid #0f51a3;
  border-left: 0;
  background: transparent;
  color: #0f51a3 !important;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.member-update-page .account-info fieldset > .custom-title.text-themegreen.big-category:first-child {
  margin-top: 0 !important;
  background: transparent !important;
}

/* Member update file upload fields */
.member-update-page .account-info input[type="file"].form-control {
  height: auto;
  min-height: 42px;
  padding: 6px 10px;
  line-height: 1.5;
}

.member-update-page .account-info input[type="file"].form-control + small {
  display: block;
  margin-top: 8px;
  color: #687582;
  font-size: 13px;
  line-height: 1.5;
}

/* 會員開通進度 */
.member-onboard-card {
  padding: 18px 24px 22px;
  margin-bottom: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.member-onboard-card:hover,
.member-onboard-card:focus-within {
  transform: none;
}

.member-onboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #edf1f5;
}

.member-onboard-head-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #1b2430;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

.member-onboard-head-title i {
  color: #2f6fae;
  font-size: 18px;
}

.member-onboard-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, #0f51a3, #1a6fd0);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.member-onboard-cta:hover,
.member-onboard-cta:focus {
  color: #fff !important;
  filter: brightness(1.05);
  box-shadow: 0 8px 18px rgba(15, 81, 163, 0.22);
  transform: translateY(-1px);
}

.member-onboard-cta i {
  font-size: 12px;
  transition: transform 0.18s ease;
}

.member-onboard-cta:hover i,
.member-onboard-cta:focus i {
  transform: translateX(2px);
}

.member-onboard-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.member-onboard-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 112px;
  padding: 16px 18px;
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  background: #fafbfc;
}

.member-onboard-step.is-todo {
  border-color: #f0dfbd;
  background: #fff9ef;
}

.member-onboard-step.is-done {
  border-color: #b7dfc3;
  background: #f3faf5;
}

.member-onboard-step.is-wait {
  border-color: #d7e4f4;
  background: #f4f8fd;
}

.member-onboard-step.is-review {
  border-color: #f0dfbd;
  background: #fff9ef;
}

.member-onboard-step-label {
  color: #6c757d;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.member-onboard-step-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #1b2430;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.member-onboard-step-title i {
  flex: 0 0 auto;
  font-size: 15px;
}

.member-onboard-step.is-todo .member-onboard-step-title {
  color: #b8740f;
}

.member-onboard-step.is-done .member-onboard-step-title {
  color: #2c7a4b;
}

.member-onboard-step.is-wait .member-onboard-step-title {
  color: #0f51a3;
}

.member-onboard-step.is-review .member-onboard-step-title {
  color: #b8740f;
}

.member-onboard-step.is-idle .member-onboard-step-title {
  color: #6c757d;
}

.member-onboard-step-desc {
  margin: 0;
  color: #495057;
  font-size: 13px;
  line-height: 1.55;
}

.member-saved-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border: 1px solid #b7dfc3;
  border-left: 4px solid #2c7a4b;
  border-radius: 10px;
  background: #edf7ee;
}

.member-saved-banner:hover,
.member-saved-banner:focus-within {
  transform: none;
}

.member-saved-banner > i {
  margin-top: 2px;
  color: #2c7a4b;
  font-size: 20px;
}

.member-saved-banner strong {
  display: block;
  color: #1f4d33;
  font-size: 15px;
}

.member-saved-banner p {
  margin: 6px 0 0;
  color: #495057;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .member-onboard-card {
    padding: 16px 16px 18px;
  }

  .member-onboard-steps {
    grid-template-columns: 1fr;
  }

  .member-onboard-cta {
    width: 100%;
    justify-content: center;
  }
}

/* 開通引導彈窗 */
body.member-onboard-modal-open {
  overflow: hidden;
}

.member-onboard-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.member-onboard-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.member-onboard-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 35, 60, 0.48);
}

.member-onboard-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px 28px 22px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(23, 35, 60, 0.22);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.member-onboard-modal.is-open .member-onboard-modal-dialog {
  transform: translateY(0) scale(1);
}

.member-onboard-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #f3f5f8;
  color: #607089;
  cursor: pointer;
}

.member-onboard-modal-close:hover {
  background: #e8edf3;
  color: #1b2430;
}

.member-onboard-modal-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-right: 28px;
}

.member-onboard-modal-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf5fb;
  color: #0f51a3;
  font-size: 20px;
}

.member-onboard-modal-head h3 {
  margin: 0 0 6px;
  color: #1b2430;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.member-onboard-modal-head p {
  margin: 0;
  color: #607089;
  font-size: 14px;
  line-height: 1.55;
}

.member-onboard-modal-field {
  margin-bottom: 14px;
}

.member-onboard-modal-field label {
  display: block;
  margin-bottom: 6px;
  color: #3d4552;
  font-size: 14px;
  font-weight: 600;
}

.member-onboard-modal-readonly {
  padding: 10px 12px;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  background: #f7f9fb;
  color: #1b2430;
  font-size: 14px;
}

.member-onboard-modal-field .form-control {
  width: 100%;
  height: 44px;
  border: 1px solid #d7dee5;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 15px;
}

.member-onboard-modal-field .form-control:focus {
  border-color: #0f51a3;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(15, 81, 163, 0.12);
}

.member-onboard-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.member-onboard-modal-secondary,
.member-onboard-modal-primary {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.member-onboard-modal-secondary {
  background: #f3f5f8;
  color: #607089;
}

.member-onboard-modal-secondary:hover {
  background: #e8edf3;
  color: #1b2430;
}

.member-onboard-modal-primary {
  background: linear-gradient(90deg, #0f51a3, #1a6fd0);
  color: #fff;
}

.member-onboard-modal-primary:hover {
  filter: brightness(1.05);
}

.member-onboard-modal-more {
  margin-top: 14px;
  text-align: center;
}

.member-onboard-modal-more a {
  color: #0f51a3;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.member-onboard-modal-more a:hover {
  text-decoration: underline;
}

button.member-onboard-cta {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.member-onboard-step.js-open-onboard-modal {
  cursor: pointer;
}

.member-onboard-step.js-open-onboard-modal:hover {
  border-color: #e0c48a;
  box-shadow: 0 6px 16px rgba(184, 116, 15, 0.08);
}

/* 登入／註冊／忘記密碼 */
.member-auth-page {
  max-width: 820px;
  margin: 0 auto;
}

.member-auth-page .account-info {
  display: block;
}

.member-auth-intro {
  margin: 0 0 8px;
  color: #495057;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.member-auth-required {
  margin: 0 0 18px;
  color: #c0392b;
  font-size: 13px;
  text-align: center;
}

.member-auth-links {
  margin-top: 8px;
  color: #6c757d;
  font-size: 14px;
}

.member-auth-links a {
  color: #0f51a3;
  font-weight: 600;
  text-decoration: none;
}

.member-auth-links a:hover {
  text-decoration: underline;
}

.member-auth-captcha {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.member-auth-captcha .form-control {
  flex: 1 1 160px;
  min-width: 140px;
}

.member-auth-captcha .newcodeimg {
  max-height: 42px;
  border: 1px solid #d7dee5;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
}

.member-auth-steps {
  display: flex;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.member-auth-steps li {
  flex: 1;
  position: relative;
  padding: 12px 14px;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  background: #f8fafc;
  color: #6c757d;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.member-auth-steps li span {
  display: block;
  margin-bottom: 2px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.member-auth-steps li.is-active {
  border-color: #0f51a3;
  background: #edf5fb;
  color: #0f51a3;
}

.member-auth-steps li.is-active span {
  color: #0f51a3;
}

.member-auth-steps li.is-done {
  border-color: #b7dfc3;
  background: #edf7ee;
  color: #2c7a4b;
}

.member-auth-steps li.is-done span {
  color: #2c7a4b;
}

.reg-usertype-box {
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 22px;
  background: #f8fafc;
}

.reg-usertype-box h6 {
  margin: 0 0 6px;
  color: #1f2d3d;
  font-size: 15px;
  font-weight: 700;
}

.reg-usertype-hint {
  margin: 0 0 14px;
  color: #6c757d;
  font-size: 13px;
  line-height: 1.55;
}

.reg-usertype-hint strong {
  color: #0f51a3;
}

.reg-usertype-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.reg-usertype-card {
  flex: 1;
  min-width: 160px;
  position: relative;
}

.reg-usertype-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reg-usertype-card label {
  display: block;
  margin: 0;
  padding: 16px 14px;
  border: 2px solid #d7dee5;
  border-radius: 10px;
  background: #fff;
  color: #1f2d3d;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.reg-usertype-card label small {
  display: block;
  margin-top: 6px;
  color: #6c757d;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.reg-usertype-card input:checked + label {
  border-color: #0f51a3;
  background: #edf5fb;
  box-shadow: 0 0 0 3px rgba(15, 81, 163, 0.12);
}

.reg-usertype-card label:hover {
  border-color: #0f51a3;
}

@media (max-width: 767px) {
  .member-auth-steps {
    flex-direction: column;
  }

  .reg-usertype-card {
    min-width: 100%;
  }
}