@import url("https://fonts.cdnfonts.com/css/sf-pro-display");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

/* 統一 step 容器樣式 */
.step-container {
  position: absolute;
  top: 15%;
  height: 85vh;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 400px;
  z-index: 1;
}

/* 只有第一個 step 預設顯示 */
#step1 {
  display: block;
}

/* 統一按鈕基礎樣式 */
.btn-base {
  display: flex;
  gap: 4px;
  padding-top: 19px;
  padding-right: 40px;
  padding-bottom: 19px;
  padding-left: 40px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  background: #e2e2e2;
  font-family: "SF Pro Display", sans-serif;
  color: #9a9a9a;
  transition: all 0.2s ease;
  opacity: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  cursor: not-allowed;
  width: 100%;
  box-sizing: border-box;
  border: none;
}

/* 主題色變數定義 */
:root {
  /* 主要品牌色 */
  --primary-color: #1a365d;
  --primary-hover: #2c5282;
  --primary-light: #4a90e2;

  /* 背景色 */
  --bg-primary: #f8f9fa;
  --bg-secondary: #000fff;
  --bg-tertiary: #e2e8f0;

  /* 文字色 */
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-muted: #718096;

  /* 狀態色 */
  --success: #38a169;
  --warning: #d69e2e;
  --error: #e53e3e;
  --info: #3182ce;

  /* 邊框色 */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e0;
  --border-dark: #a0aec0;

  /* 圖片路徑變數 */
  --img-path: url(img/);

  /* CSS 圖示變數 */
  --icon-arrow-right: "▶";
  --icon-arrow-left: "◀";
  --icon-check: "✓";
  --icon-close: "✕";
  --icon-search: "🔍";
}

/* 圖片預載入優化 */
.preload-images {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* 圖片載入優化 - 已移除，使用 HTML 屬性 */

/* 版面防爆版樣式 */
.header-container {
  position: relative;
  min-height: 60px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.title-container {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.member-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.member-number {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 18px;
}

.member-text {
  color: var(--text-secondary);
  font-size: 16px;
}

/* 姓名遮罩樣式 */
.masked-name {
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 1px;
}

.masked-name::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  margin-left: 4px;
  opacity: 0.6;
}

/* 響應式調整 */
@media (max-width: 480px) {
  .page_title {
    font-size: 18px;
    padding: 0 10px;
  }

  .back_link_block {
    left: 10px;
    max-width: calc(100% - 20px);
  }

  .header-container {
    padding: 15px 10px;
    min-height: 50px;
  }

  .member-info {
    flex-direction: column;
    gap: 4px;
  }
}

/* 減少重繪的圖示樣式 */
.icon-optimized {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

ul,
li {
  /* list-style: none; */
  padding: 0px;
}
a {
  color: #1a365d;
}
#step2-1,
#step2-2,
#step3,
#step4 {
  display: none;
}

.default_font {
  font-family: "SF Pro Display", sans-serif;
  color: #000;
}
.default_font_black {
  font-family: "SF Pro Display", sans-serif;
  color: #000 !important;
}
.logo {
  width: 30%;
  max-width: 100px;
}
.select {
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px; /* 129.412% */
  letter-spacing: -0.408px;
  border: 0px;

  color: var(--text-primary);
}

.tip {
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px; /* 133.333% */
  color: #b3b3bd;
}
.submit_button {
  /* 繼承基礎按鈕樣式 */
  display: flex;
  gap: 4px;
  padding-top: 19px;
  padding-right: 40px;
  padding-bottom: 19px;
  padding-left: 40px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  background: #e2e2e2;
  font-family: "SF Pro Display", sans-serif;
  color: #9a9a9a;
  transition: all 0.2s ease;
  opacity: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  cursor: not-allowed;
  width: 100%;
  box-sizing: border-box;
  border: none;
}

.submit_button:hover {
  background: var(--primary-hover);
}

.submit_button.enable {
  background: #002d7e;
  color: #ffffff;
  opacity: 1;
  cursor: pointer;
}

.submit_button.enable:hover {
  background: #001f5c;
  transform: translateY(-1px);
}

.submit_button.disable {
  background: #e2e2e2;
  color: #9a9a9a;
  cursor: not-allowed;
  opacity: 0.6;
}

.submit_button.disable:hover {
  background: #e2e2e2;
  transform: none;
}

.submit_block {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92vw;
  max-width: 400px;
  box-sizing: border-box;
  z-index: 1000;
}

/* 響應式設計 */
@media (max-width: 480px) {
  .step-container {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    top: 15%;
    height: 85vh;
  }

  .submit_block {
    width: 90vw;
    bottom: 16px;
  }

  .verify_button_block {
    width: 90vw;
    bottom: 85px;
  }
}

@media (max-width: 360px) {
  .step-container {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    top: 15%;
    height: 85vh;
  }

  .submit_block {
    width: 90vw;
    bottom: 16px;
  }

  .verify_button_block {
    width: 90vw;
    bottom: 80px;
  }
}

.phone_label {
  color: #000;

  /* Body */
  font-family: "SF Pro Display", sans-serif;
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px; /* 129.412% */
  letter-spacing: -0.408px;
}
.forgot_password {
  color: var(--content-content-secondary, #b3b3bd);
  text-align: right;
  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px; /* 133.333% */
  text-decoration-line: underline;
}
.blocker {
  z-index: 9999 !important;
  padding: 0px !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(8px) !important;
  transition: all 0.3s ease !important;
}
.jquery-modal > .modal {
  width: 100% !important;
  max-width: 100vw !important;
  background: var(--bg-primary) !important;
  height: 100vh !important;
  border-radius: 0 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  animation: modalSlideIn 0.3s ease-out !important;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 精緻的載入動畫 */
.blockUI {
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  animation: blockUIFadeIn 0.4s ease-out !important;
  width: 100% !important;
  height: 100vh !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 9999 !important;
}

@keyframes blockUIFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes simpleSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 簡化載入動畫 */
.blockUI .loading-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 16px 0;
  position: relative;
  z-index: 1;
}

.blockUI .loading-dots::before,
.blockUI .loading-dots::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: dotBounce 1.2s ease-in-out infinite both;
}

.blockUI .loading-dots::before {
  animation-delay: -0.2s;
}

.blockUI .loading-dots::after {
  animation-delay: -0.1s;
}

@keyframes dotBounce {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 簡化波浪載入動畫 */
.blockUI .loading-waves {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  margin: 16px 0;
  position: relative;
  z-index: 1;
}

.blockUI .loading-waves span {
  width: 3px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}

.blockUI .loading-waves span:nth-child(1) {
  animation-delay: -0.3s;
}
.blockUI .loading-waves span:nth-child(2) {
  animation-delay: -0.2s;
}
.blockUI .loading-waves span:nth-child(3) {
  animation-delay: -0.1s;
}
.blockUI .loading-waves span:nth-child(4) {
  animation-delay: 0s;
}
.blockUI .loading-waves span:nth-child(5) {
  animation-delay: 0.1s;
}

@keyframes wave {
  0%,
  40%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.5;
  }
  20% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* 脈衝載入動畫 */
.blockUI .loading-pulse {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: pulseScale 1.5s ease-in-out infinite;
}

@keyframes pulseScale {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(0.8);
    opacity: 1;
  }
}

/* 載入文字樣式 */
.blockUI .blockUI-message {
  color: #ffffff !important;
  font-family: "SF Pro Display", sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  text-align: center !important;
  margin: 0 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  line-height: 1.4 !important;
  display: block !important;
  position: relative;
  z-index: 1;
}

/* 確保所有 blockUI 文字都是白色 */
.blockUI,
.blockUI *,
.blockUI div,
.blockUI span,
.blockUI p,
.blockUI h1,
.blockUI h2,
.blockUI h3,
.blockUI h4,
.blockUI h5,
.blockUI h6 {
  color: #ffffff !important;
}

/* 關閉按鈕樣式 */
.blockUI .blockUI-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 32px !important;
  height: 32px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  border-radius: 50% !important;
  color: white !important;
  font-size: 18px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.blockUI .blockUI-close:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.1) !important;
}

/* 脈衝動畫效果 */
.blockUI .blockUI-pulse {
  animation: pulse 2s infinite !important;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 54, 93, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(26, 54, 93, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(26, 54, 93, 0);
  }
}

/* 進度條樣式 */
.blockUI .blockUI-progress {
  width: 200px !important;
  height: 4px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 2px !important;
  margin: 16px auto 0 !important;
  overflow: hidden !important;
}

.blockUI .blockUI-progress-bar {
  height: 100% !important;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-light)
  ) !important;
  border-radius: 2px !important;
  animation: progressBar 2s ease-in-out infinite !important;
}

@keyframes progressBar {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

/* 創新建載入動畫 */
.blockUI .loading-squares {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 20px 0;
}

.blockUI .loading-squares span {
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 2px;
  animation: squareRotate 1.5s ease-in-out infinite;
}

.blockUI .loading-squares span:nth-child(1) {
  animation-delay: 0s;
}
.blockUI .loading-squares span:nth-child(2) {
  animation-delay: 0.1s;
}
.blockUI .loading-squares span:nth-child(3) {
  animation-delay: 0.2s;
}
.blockUI .loading-squares span:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes squareRotate {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotate(180deg) scale(0.8);
    opacity: 0.7;
  }
}

/* 圓環載入動畫 */
.blockUI .loading-ring {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid var(--primary-color);
  border-right: 4px solid var(--primary-light);
  border-radius: 50%;
  animation: ringSpin 1s linear infinite;
}

@keyframes ringSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 心形載入動畫 */
.blockUI .loading-heart {
  width: 30px;
  height: 30px;
  margin: 0 auto 20px;
  background: var(--primary-color);
  transform: rotate(45deg);
  animation: heartBeat 1.2s ease-in-out infinite;
}

.blockUI .loading-heart::before,
.blockUI .loading-heart::after {
  content: "";
  width: 30px;
  height: 30px;
  position: absolute;
  background: var(--primary-color);
  border-radius: 50%;
}

.blockUI .loading-heart::before {
  top: -15px;
  left: 0;
}

.blockUI .loading-heart::after {
  top: 0;
  left: -15px;
}

@keyframes heartBeat {
  0%,
  100% {
    transform: rotate(45deg) scale(1);
  }
  50% {
    transform: rotate(45deg) scale(1.2);
  }
}

/* 載入文字動畫 */
.blockUI .loading-text {
  color: white;
  font-family: "SF Pro Display", sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  animation: textFade 2s ease-in-out infinite;
}

@keyframes textFade {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* 響應式設計 */
@media (max-width: 768px) {
  .blockUI {
    padding: 0 !important;
  }

  .blockUI .blockUI-message {
    font-size: 14px !important;
    margin: 0 !important;
  }

  .blockUI .loading-waves span {
    width: 2px;
    height: 14px;
  }

  .blockUI .loading-dots::before,
  .blockUI .loading-dots::after {
    width: 6px;
    height: 6px;
  }

  .blockUI .loading-ring {
    width: 32px;
    height: 32px;
    border-width: 2px;
  }

  .blockUI .loading-pulse {
    width: 32px;
    height: 32px;
  }
}

#contry_list {
  color: #000;
  font-family: "SF Pro Display", sans-serif;
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.408px;
  list-style: none;
}
#search_bar {
  margin-top: 40px;
  margin-bottom: 40px;
  position: relative;
}

body {
  background-color: var(--bg-primary);
}
.wrap {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 16px;
  box-sizing: border-box;
}
.wrap_info {
  display: flex;
  margin-top: 40px;
  justify-content: center;
  margin-top: 26px;
  padding-left: 20px;
  padding-right: 20px;
  flex-direction: column;
}

.input-wrapper {
  position: relative;
}

.text-input {
  border: 1px solid #000;
  border-radius: 6px;
  padding: 10px;
  outline: none;
  width: 100%;
  height: 56px;
  color: var(--text-primary);
  /*position: absolute;*/
  background-color: transparent;
  z-index: 1;
  font-size: 16px;
}

.text-input:focus {
  border: 1.5px solid #000;
}

.input-label {
  background-color: var(--bg-primary);
  position: absolute;
  color: #000;

  top: 16px;
  left: 16px;
  font-size: 16px;

  z-index: 2;

  transition: 0.3s;
  pointer-events: none;
}

.text-input:focus + .input-label {
  top: -0.55rem;
  left: 0.5rem;

  transform: scale(0.75);
  color: #000;
  font-weight: 500;
}

.text-input:not(:placeholder-shown).text-input:not(:focus) + .input-label {
  top: -0.55rem;
  left: 0.5rem;

  transform: scale(0.75);
  color: #000;
  font-weight: 500;
}

#country_list {
  padding-inline-start: 0px;
}
#country_list > li {
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  align-self: stretch;
  padding-bottom: 16px;
  border-bottom: solid 0.5px #000;
}

.select_country_code {
  color: var(--primary-color);
}
.select_country_code:after {
  content: var(--icon-check);
  color: var(--primary-color);
  font-size: 16px;
  font-weight: bold;
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
}

#search_txt {
  display: flex;
  width: 100%;
  padding: 7px 8px;
  align-items: center;
  border-radius: 10px;
  background: var(--fills-tertiary-dark, rgba(118, 118, 128, 0.24));
  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "SF Pro Display", sans-serif;
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.4px;
  border: 0px;
  padding-left: 40px;
}
#search_txt::before {
  content: var(--icon-search);
  color: var(--text-muted);
  font-size: 16px;
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
}

.step {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px;

  border-radius: 12px;
  margin: 20px 0;
}

.step img {
  filter: brightness(0) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.step img:hover {
  transform: scale(1.05);
}

/* 統一黑色濾鏡 */
img[src*="step_"],
img[src*="checked"],
img[src*="non_check"],
img[src*="close.png"],
img[src*="Search.png"],
img[src*="Dictation.png"] {
  filter: brightness(0);
}

/* 國家選擇模態框樣式 - 重新設計 */
#countries_code .modal {
  background: #e5e5e5;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#countries_code .wrap {
  border-radius: 16px 16px 0 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

/* 頁面標題區域 */
#countries_code .country-header {
  background: #ffffff;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

#countries_code .back-link {
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
}

#countries_code .back-arrow {
  font-size: 18px;
  margin-right: 4px;
}

#countries_code .country-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #000000;
}

#countries_code .close-button {
  color: #666666;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

#countries_code .close-button:hover {
  background-color: #f0f0f0;
}

/* 國家列表 */
#countries_code .country-list {
  flex: 1;
  overflow-y: auto;
  background: #ffffff;
}

#countries_code .country-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#countries_code .country-list li {
  padding: 12px 20px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  color: #000000;
}

#countries_code .country-list li:hover {
  background-color: #f8f8f8;
}

#countries_code .country-list li:last-child {
  border-bottom: none;
}

#countries_code .country-list li.selected {
  background-color: #f0f7ff;
}

#countries_code .country-list li.selected::after {
  content: "✓";
  color: var(--primary-color);
  font-weight: bold;
  font-size: 18px;
}

/* 底部確定按鈕 */
#countries_code .country-footer {
  background: #ffffff;
  padding: 20px;
  border-top: 1px solid #e0e0e0;
}

#countries_code .confirm-button {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

#countries_code .confirm-button:hover {
  background: #1a365d;
  transform: translateY(-1px);
}

#countries_code .confirm-button:active {
  transform: translateY(0);
}

/* 響應式設計 */
@media (max-width: 480px) {
  #countries_code .country-header {
    padding: 12px 16px;
  }

  #countries_code .country-title {
    font-size: 16px;
  }

  #countries_code .back-link {
    font-size: 14px;
  }

  #countries_code .close-button {
    font-size: 20px;
    padding: 2px 6px;
  }

  #countries_code .country-list li {
    padding: 10px 16px;
    font-size: 15px;
  }

  #countries_code .country-footer {
    padding: 16px;
  }

  #countries_code .confirm-button {
    padding: 10px 20px;
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  #countries_code .country-header {
    padding: 10px 12px;
  }

  #countries_code .country-title {
    font-size: 15px;
  }

  #countries_code .close-button {
    font-size: 18px;
    padding: 2px 4px;
  }

  #countries_code .country-list li {
    padding: 8px 12px;
    font-size: 14px;
  }

  #countries_code .country-footer {
    padding: 12px;
  }

  #countries_code .confirm-button {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Step 狀態樣式 */
.step-complete {
  background: var(--primary-color);
  border-radius: 50%;
  padding: 4px;
}

.step-current {
  background: var(--primary-light);
  border-radius: 50%;
  padding: 4px;
  animation: pulse 2s infinite;
}

.step-pending {
  background: var(--text-muted);
  border-radius: 50%;
  padding: 4px;
  opacity: 0.6;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--primary-light);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(74, 144, 226, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
  }
}

/* Step 連接線樣式 */
.step-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 1px;
  position: relative;
}

.step-line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid var(--primary-light);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* 響應式設計 */
@media (max-width: 480px) {
  .step {
    padding: 12px;
    gap: 6px;
    margin: 15px 0;
  }

  .step-line {
    width: 30px;
  }

  .step img {
    max-width: 24px;
    height: auto;
  }
}

@media (max-width: 360px) {
  .step {
    padding: 8px;
    gap: 4px;
  }

  .step-line {
    width: 20px;
  }
}

.verify_button_block {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 92vw;
  max-width: 400px;
  text-align: center;
  margin-bottom: 16px;
  z-index: 1000;
}

.verify_button {
  /* 繼承基礎按鈕樣式 */
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.27px;
  transition: all 0.3s ease;
}

.verify_button.enable {
  background: #002d7e;
  color: #ffffff;
}

.verify_button.enable:hover {
  background: #001f5c;
  transform: translateY(-1px);
}

.verify_button.disable {
  background: #e2e2e2;
  color: #9a9a9a;
  cursor: not-allowed;
  opacity: 0.6;
}

.verify_button.disable:hover {
  background: #e2e2e2;
  transform: none;
}

.menu {
  margin-top: 40px;
  text-align: left;
}
.menu > li {
  padding-bottom: 12px;
  padding-top: 12px;
  border-bottom: solid 0.5px #8e8e93;
  display: flex;
  align-items: center;
  font-size: 17px;
}
.membership {
  font-family: "SF Pro Display", sans-serif;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0px;
  text-align: left;
}
.menu > li::before {
  background-size: 32px 32px;
  display: inline-block;
  width: 32px;
  height: 32px;
  content: "";
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 16px;
}

.menu > li::after {
  content: var(--icon-arrow-right);
  color: var(--text-muted);
  font-size: 16px;
  font-weight: bold;
  vertical-align: middle;
  float: right;
  line-height: 1;
}

.membership::before {
  background: var(--text-primary);
  mask: url(img/fitness_center.png) no-repeat center;
  mask-size: 24px 24px;
  -webkit-mask: url(img/fitness_center.png) no-repeat center;
  -webkit-mask-size: 24px 24px;
}
.account::before {
  background: var(--text-primary);
  mask: url(img/person.png) no-repeat center;
  mask-size: 24px 24px;
  -webkit-mask: url(img/person.png) no-repeat center;
  -webkit-mask-size: 24px 24px;
}
.free_trial::before {
  background: var(--text-primary);
  mask: url(img/one_day_pass.png) no-repeat center;
  mask-size: 24px 24px;
  -webkit-mask: url(img/one_day_pass.png) no-repeat center;
  -webkit-mask-size: 24px 24px;
}
.companion::before {
  background: var(--text-primary);
  mask: url(img/person_add.png) no-repeat center;
  mask-size: 24px 24px;
  -webkit-mask: url(img/person_add.png) no-repeat center;
  -webkit-mask-size: 24px 24px;
}
.logout::before {
  background: var(--text-primary);
  mask: url(img/logout.png) no-repeat center;
  mask-size: 24px 24px;
  -webkit-mask: url(img/logout.png) no-repeat center;
  -webkit-mask-size: 24px 24px;
}

#user_name {
  font-family: "SF Pro Display", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0px;
  text-align: left;
}

.input_invite_code {
  width: 90vw;
  height: 48px;
  padding: 4px, 4px, 4px, 20px;
  border-radius: 100px;
  justify-content: space-between;
  background: #fff;
  border: 0px;
  padding-left: 20px;
  color: #000;
  font-size: 14px;
  line-height: 18px;
}

.exchange_invite_code {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 108px;
  height: 40px;
  padding: 10px, 40px, 10px, 40px;
  border-radius: 100px;
  gap: 10px;
  background: rgba(99, 99, 102, 1);
  color: rgba(179, 179, 189, 1);
  font-family: "SF Pro Display", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0px;
  text-align: center;
  border: 0px;
}
.page_title {
  font-family: "SF Pro Display", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0px;
  text-align: center;
  margin: 0;
  padding: 0 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.record_block {
  color: #000;
  font-family: "SF Pro Display", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0px;
  text-align: left;
}
.record_inline {
  display: flex;
  justify-content: space-between;
}
.record_list {
  font-family: "SF Pro Display", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0px;
  text-align: left;
  color: rgba(179, 179, 189, 1);
}

.record_card {
  padding: 20px;
  border-radius: 10px;
  gap: 12px;
  position: relative;
  background: rgba(44, 44, 46, 1);
  text-align: left;
  font-family: "SF Pro Display", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0px;
  text-align: left;
  margin-bottom: 20px;
}
.record_card > div {
  margin-bottom: 12px;
}
.record_card > div > img {
  vertical-align: bottom;
  width: 24px;
  margin-left: 4px;
}
.record_date {
  font-family: "SF Pro Display", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0px;
  text-align: left;
  color: #1a365d;
}
.record_status::before {
  background-size: 24px 24px;
  display: inline-block;
  width: 10px;
  height: 10px;
  content: "";
  background-repeat: no-repeat;
  border-radius: 50%;
  margin-right: 10px;
}
.record_status::after {
  background-image: url(img/chevron_right_orange.png);
  background-size: 24px 24px;
  display: inline-block;
  width: 24px;
  height: 24px;
  content: "";
  margin-left: 4px;
  background-repeat: no-repeat;
  vertical-align: middle;
  filter: hue-rotate(200deg) saturate(2) brightness(0.3);
}

.record_status.none::after {
  background-image: none !important;
}

.record_status.yellow::before {
  background: rgba(238, 206, 36, 1);
}

.record_status.green::before {
  background: rgba(60, 230, 169, 1);
}
.record_status.grey::before {
  background: rgba(179, 179, 189, 1);
}

.button_enable {
  background: #1a365d;
  color: #000;
}

input:focus {
  outline: none;
}

.error_msg {
  font-family: "SF Pro Display", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0px;
  text-align: left;
  color: rgba(255, 69, 58, 1);
  margin-left: 20px;
  margin-top: 6px;
}
.information {
  margin-top: 30px;
  margin-left: 20px;
  margin-right: 20px;
}
.information > li {
  padding-bottom: 16px;
  padding-top: 16px;
  border-bottom: solid 0.5px rgba(142, 142, 147, 1);
  display: flex;
  justify-content: space-between;
}

.membership_info {
  margin-top: 30px;
}
.membership_info > li {
  padding-bottom: 16px;
  padding-top: 16px;
  border-bottom: solid 0.5px rgba(142, 142, 147, 1);
  display: flex;
  justify-content: space-between;
}

.button_txt_size {
  font-family: "SF Pro Display", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.27px;
  text-align: left;
}

.position_bottom {
  position: fixed;
  bottom: 0px;
  left: 0px;
  right: 0px;
  text-align: center;
  background: var(--bg-primary) !important;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.rule_title {
  font-family: "SF Pro Display", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: 0px;
  text-align: left;
}

.rule_box {
  font-family: "SF Pro Display", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0px;
  text-align: left;
  font-family: "SF Pro Display", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0px;
  text-align: left;
  overflow-wrap: break-word;
  margin-top: 24px;
}
.confirm_rule {
  margin-top: 24px;
  display: flex;
  text-align: left;
}

.container {
  display: block;
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 3px;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #eee;
  border-radius: 3px;
}
/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
  background: #1a365d;
  border-radius: 3px;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.invite_status::before {
  background-size: 24px 24px;
  display: inline-block;
  width: 10px;
  height: 10px;
  content: "";
  background-repeat: no-repeat;
  border-radius: 50%;
  margin-right: 10px;
}

.invite_status.yellow::before {
  background: rgba(238, 206, 36, 1);
}

.invite_status.green::before {
  background: rgba(60, 230, 169, 1);
}
.invite_status.grey::before {
  background: rgba(179, 179, 189, 1);
}

.invite_status.red::before {
  background: rgb(239, 74, 110);
}
.back_link_block {
  position: absolute;
  top: 18px;
  left: 0px;
  z-index: 10;
  max-width: calc(100% - 40px);
}
.back_link {
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.back_link::before {
  background-image: url(img/chevron_right_orange.png);
  transform: rotate(180deg);
  background-size: 24px 24px;
  display: inline-block;
  width: 24px;
  height: 24px;
  content: "";
  background-repeat: no-repeat;
  vertical-align: middle;
  filter: hue-rotate(200deg) saturate(2) brightness(0.3);
}

.new_label {
  padding: 4px 8px 4px 8px;
  border-radius: 100px;
  gap: 10px;
  background: #1a365d;
  margin-left: 12px;
  text-align: center;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  letter-spacing: 0px;
}

.page_subtitle {
  font-family: "SF Pro Display", sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 24px;
  letter-spacing: 0px;
  color: #1a365d;
}
.package_info {
  text-align: left;
}
.package_info > li {
  margin-bottom: 15px;
  text-align: left;
  list-style: none;
}

.package_info_box {
  margin-bottom: 70px;
}

.more_info {
  font-family: "SF Pro Display", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.27000001072883606px;
  text-align: center;
  margin-top: 60px;
}

.qrcode_block canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; /* 保持正方形 */
  flex: 0 0 auto; /* 不要被 flex 拉伸 */
}

/* .qrcode_block {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
  background: #000;
  padding: 20px;
} */

.membership_help {
  width: 24px;
  vertical-align: top;
  margin-left: 10px;
}

.check_privacy {
  font-family: "SF Pro";
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0%;
  color: #b3b3bd;
}

.privacy_text {
  height: 300px;
  overflow-y: auto;
  border: 1px solid #000;
  padding: 10px;
  margin-bottom: 20px;
}
.privacy_title {
  font-family: "SF Pro";
  font-weight: 700;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: 0px;
  text-align: center;
}
