/* ============================================================
   錢包教學頁（guide.html）· 分頁式
   ------------------------------------------------------------
   設計原則：
     1. 一頁只講一件事，按「下一步」才前進
     2. 每頁的捲動量控制在一屏左右，手機不用一直滑
     3. 主按鈕只有一顆，方向明確不迷路
     4. 參數區塊附複製鍵，減少手打錯誤
   ============================================================ */

.guide-body {
  background: var(--navy-900);
  padding: 0 0 36px;
}

.guide-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 18px 0;
}

/* ---------- 頂部 ---------- */

.guide-head {
  text-align: center;
  margin-bottom: 16px;
}

.guide-logo {
  display: inline-block;
  margin-bottom: 10px;
}

.guide-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.4));
}

.guide-h1 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-primary);
}

.guide-lead {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold-200);
}

/* ---------- 進度條 ---------- */

.guide-progress {
  height: 5px;
  margin-bottom: 26px;
  border-radius: 99px;
  background: rgba(168, 134, 28, 0.16);
  overflow: hidden;
}

.guide-progress-bar {
  width: 33.33%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #f0d98a, #d4af37);
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.25, 1);
}

/* ---------- 分頁 ---------- */

.guide-page[hidden] {
  display: none;
}

/* 分頁進場動畫：從下方淡入，讓「換頁」這件事有感 */
.guide-page {
  animation: guide-in 0.34s cubic-bezier(0.2, 0.8, 0.25, 1);
}

@keyframes guide-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 每頁的大圖示 */
.guide-big-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
  background: linear-gradient(135deg, #f0d98a, #d4af37);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.4);
}

.guide-page-title {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-align: center;
  color: var(--text-primary);
}

.guide-page-desc {
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.85;
  text-align: center;
  color: var(--text-secondary);
}

/* ---------- 下載按鈕 ---------- */

.guide-dl-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #1a1200;
  background: linear-gradient(135deg, #f0d98a, #d4af37);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.34);
  transition: transform 0.18s, box-shadow 0.18s;
}

.guide-dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.46);
}

.guide-dl-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 19px;
  background: rgba(26, 18, 0, 0.12);
}

.guide-dl-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.guide-dl-main {
  font-size: 16px;
  font-weight: 800;
}

.guide-dl-sub {
  margin-top: 1px;
  font-size: 11px;
  opacity: 0.72;
}

/* ---------- 提示方塊 ---------- */

.guide-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.75;
  text-align: left;
}

.guide-note-icon {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1.55;
}

.guide-note-warn {
  border-left: 3px solid #e02e2e;
  background: rgba(224, 46, 46, 0.09);
  color: #8c1d1d;
}

.guide-note-ok {
  border-left: 3px solid #2e7d32;
  background: rgba(46, 125, 50, 0.1);
  color: #1f5c23;
}

/* ---------- 步驟二：先找找看 ---------- */

.guide-check {
  margin-bottom: 16px;
  padding: 15px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
}

.guide-check-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.guide-check-icon {
  font-size: 16px;
}

.guide-check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: gc;
}

.guide-check-list li {
  position: relative;
  counter-increment: gc;
  padding: 0 0 9px 24px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.guide-check-list li:last-child {
  padding-bottom: 0;
}

.guide-check-list li::before {
  content: counter(gc);
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.3);
  color: var(--gold-200);
}

/* ---------- 步驟二：手動添加 ---------- */

.guide-manual {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(168, 134, 28, 0.3);
}

.guide-manual-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.guide-manual-desc {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
}

.guide-fields {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.guide-field {
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--navy-800);
  border: 1px solid var(--border-subtle);
}

.guide-field-label {
  margin-bottom: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.guide-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-field-value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  color: var(--text-primary);
  word-break: break-all;
  line-height: 1.5;
}

.guide-copy {
  flex-shrink: 0;
  padding: 5px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-200);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}

.guide-copy:hover {
  background: rgba(212, 175, 55, 0.16);
}

.guide-copy.done {
  color: #2e7d32;
  border-color: #2e7d32;
  background: rgba(46, 125, 50, 0.1);
}

/* ---------- 步驟三：清單 ---------- */

.guide-simple-list {
  margin: 0 0 20px;
  padding: 8px 16px;
  list-style: none;
  counter-reset: gs;
  border-radius: 12px;
  background: var(--navy-700);
  border: 1px solid var(--border-strong);
}

.guide-simple-list li {
  position: relative;
  counter-increment: gs;
  padding: 13px 0 13px 36px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.guide-simple-list li + li {
  border-top: 1px solid var(--border-subtle);
}

.guide-simple-list li::before {
  content: counter(gs);
  position: absolute;
  left: 0;
  top: 13px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 800;
  background: rgba(212, 175, 55, 0.24);
  color: var(--gold-200);
}

/* ---------- 底部按鈕 ---------- */

/* 主要按鈕（下一步 / 完成） */
.guide-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 800;
  text-decoration: none;
  color: #1a1200;
  background: linear-gradient(135deg, #f0d98a, #d4af37);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

.guide-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
}

.guide-next-arrow {
  font-size: 17px;
}

/* 次要按鈕（我已經有錢包了） */
.guide-already {
  display: block;
  margin-top: 14px;
  padding: 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.guide-already:hover {
  color: var(--gold-200);
  text-decoration: underline;
}

/* 上一步 */
.guide-prev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.guide-prev:hover {
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

/* ---------- 買 U 頁：三種買法卡片 ---------- */

.buy-options {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 6px;
}

.buy-opt {
  padding: 14px 15px;
  border-radius: 12px;
  background: var(--navy-700);
  border: 1px solid var(--border-subtle);
}

/* 最推薦的那個：金色框強調 */
.buy-opt-best {
  border-color: var(--border-strong);
  background: rgba(212, 175, 55, 0.11);
  box-shadow: 0 0 0 1.5px rgba(212, 175, 55, 0.35);
}

.buy-opt-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.buy-opt-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #1a1200;
  background: linear-gradient(135deg, #f0d98a, #d4af37);
}

.buy-opt-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.buy-opt-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: bo;
}

.buy-opt-list li {
  position: relative;
  counter-increment: bo;
  padding: 0 0 7px 22px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.buy-opt-list li:last-child {
  padding-bottom: 0;
}

.buy-opt-list li::before {
  content: counter(bo);
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.26);
  color: var(--gold-200);
}

.buy-opt-list code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(42, 36, 16, 0.09);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  color: var(--text-primary);
}

/* 危險警告（鏈選錯會丟錢） */
.guide-note-danger {
  border-left: 3px solid #e02e2e;
  background: rgba(224, 46, 46, 0.1);
  color: #8c1d1d;
}

.guide-note-danger strong {
  color: #c41c1c;
}

/* ---------- 模擬：備份助記詞畫面 ---------- */

/* 頂部三個圖示（盾牌、卡片、鑰匙） */
.tp-mock-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef3fb, #dfe8f5);
}

.tp-mock-hero-ico {
  font-size: 30px;
  line-height: 1;
}

/* 紅色重要提醒框 */
.tp-mock-danger {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(224, 46, 46, 0.14);
  border: 1px solid rgba(224, 46, 46, 0.32);
  text-align: left;
}

.tp-mock-danger-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 12.5px;
  font-weight: 800;
  color: #ff7a7a;
}

.tp-mock-danger-text {
  font-size: 12px;
  line-height: 1.65;
  font-weight: 600;
  color: #ff9d9d;
}

/* 建議備份方式 */
.tp-mock-suggest-title {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-align: left;
}

.tp-mock-suggest {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.tp-mock-suggest li {
  position: relative;
  padding: 4px 0 4px 15px;
  font-size: 11.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.tp-mock-suggest li::before {
  content: "-";
  position: absolute;
  left: 2px;
  color: rgba(255, 255, 255, 0.45);
}

/* 「高級設置」小連結 */
.tp-mock-advanced {
  margin-top: 12px;
  font-size: 11.5px;
  color: #4a9bff;
}

/* 不要點的主按鈕（例如「生成助記詞」）：壓暗，視覺上排除 */
.tp-mock-submit-muted {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

/* 要點的「稍後再備份」：金色框高亮 */
.tp-mock-skip {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #ffdf8f;
  text-align: center;
  background: rgba(212, 175, 55, 0.16);
  box-shadow: inset 0 0 0 1.5px rgba(212, 175, 55, 0.75);
  animation: tp-pulse-active 2s ease-in-out infinite;
}

/* ---------- 子步驟標籤（一頁內有多個小步驟時用） ---------- */

.guide-sub-step {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 22px 0 11px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
}

.guide-sub-badge {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 800;
  color: #1a1200;
  background: linear-gradient(135deg, #f0d98a, #d4af37);
}

/* ---------- 模擬：選擇錢包類型 / 選鏈列表 ---------- */

.tp-mock-center {
  text-align: center;
}

.tp-mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tp-mock-row:last-of-type {
  border-bottom: none;
}

.tp-mock-row-text {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  text-align: left;
}

.tp-mock-chevron {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.3);
}

/* 圓形彩色圖示（身份錢包、多簽、硬體錢包那排） */
.tp-mock-ico-badge {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
}

.tp-mock-ico-cyan {
  background: linear-gradient(135deg, #3ee0f0, #1ab5d6);
  color: #03282e;
}

/* 要點的那一列：金色框 + 淡金底 */
.tp-mock-row-active {
  margin: 2px -6px;
  padding-left: 14px;
  padding-right: 14px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.16);
  box-shadow: inset 0 0 0 1.5px rgba(212, 175, 55, 0.75);
  animation: tp-pulse-active 2s ease-in-out infinite;
}

@keyframes tp-pulse-active {
  0%, 100% { box-shadow: inset 0 0 0 1.5px rgba(212, 175, 55, 0.75); }
  50%      { box-shadow: inset 0 0 0 2.5px rgba(212, 175, 55, 0.95); }
}

/* 不要點的那幾列：壓暗 */
.tp-mock-row-muted,
.tp-mock-chain-muted {
  opacity: 0.42;
}

/* 畫面內的補充提示 */
.tp-mock-hint {
  margin: 12px 0 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
  text-align: left;
}

.tp-mock-hint-gold {
  background: rgba(212, 175, 55, 0.18);
  color: #ffdf8f;
  font-weight: 600;
}

/* 「單網路錢包」小標題 */
.tp-mock-screen-label {
  margin: 4px 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
}

/* 搜尋框 */
.tp-mock-search {
  margin-bottom: 8px;
  padding: 11px 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  text-align: left;
}

/* 鏈列表的每一列 */
.tp-mock-chain {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tp-mock-chain:last-of-type {
  border-bottom: none;
}

.tp-mock-chain-ico {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
}

.tp-mock-ico-btc {
  background: #f7931a;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.tp-mock-ico-eth {
  background: #e8ecf3;
  color: #3c3c3d;
}

.tp-mock-ico-bnb {
  background: #f3ba2f;
  color: #1a1200;
}

.tp-mock-ico-trx {
  background: #ff060a;
  color: #fff;
}

.tp-mock-ico-sol {
  background: linear-gradient(135deg, #9945ff, #14f195);
  color: #fff;
}

/* ---------- 模擬：建立統一密碼畫面 ---------- */

.tp-mock-screen-title {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  text-align: left;
}

.tp-mock-screen-sub {
  margin-bottom: 18px;
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  text-align: left;
}

.tp-mock-field-label {
  margin-bottom: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.tp-mock-input {
  margin-bottom: 16px;
  padding: 13px 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
  text-align: left;
}

/* 同意條款那一行 */
.tp-mock-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 14px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.tp-mock-radio {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
}

/* 確定創建（TP 是藍色按鈕，照實呈現） */
.tp-mock-submit {
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  background: #1677ff;
  box-shadow: 0 6px 18px rgba(22, 119, 255, 0.35);
}

/* ---------- 模擬 TP App 畫面 ----------
   為什麼要做假的 App 畫面：
     使用者最常卡在「打開 TP 之後不知道點哪個」。
     純文字寫「點我沒有錢包」還不夠，畫出來最直觀，
     而且可以直接把正確的那一行用金色高亮 + 手指圖示標出來。
     ------------------------------------------------ */

.tp-mock {
  margin-bottom: 16px;
  padding: 20px 16px;
  border-radius: 16px;
  background: #12141c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tp-mock-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.tp-mock-logo {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: #2980fe;
}

.tp-mock-name {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.82);
}

.tp-mock-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
  padding: 14px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.tp-mock-btn:last-child {
  margin-bottom: 0;
}

/* 上面那顆（我有錢包）：故意調暗，表示「不要點這個」 */
.tp-mock-muted {
  opacity: 0.44;
}

/* 下面那顆（我沒有錢包）：金色高亮，表示「點這個」 */
.tp-mock-active {
  position: relative;
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.75);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.22), 0 6px 18px rgba(0, 0, 0, 0.35);
  animation: tp-pulse 2s ease-in-out infinite;
}

@keyframes tp-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.22), 0 6px 18px rgba(0, 0, 0, 0.35); }
  50%      { box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.13), 0 6px 18px rgba(0, 0, 0, 0.35); }
}

.tp-mock-ico {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.09);
}

.tp-mock-txt {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.4;
}

.tp-mock-main {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.tp-mock-sub {
  margin-top: 2px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* 手指圖示，指著要點的那顆按鈕 */
.tp-mock-tap {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  animation: tp-tap 1.4s ease-in-out infinite;
}

@keyframes tp-tap {
  0%, 100% { transform: translate(0, -50%); }
  50%      { transform: translate(-7px, -50%); }
}

/* 畫面下方那行提示 */
.guide-inline-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 11px 14px;
  border-radius: 9px;
  background: rgba(212, 175, 55, 0.14);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--gold-200);
  text-align: left;
}

/* ---------- 買 U 三個步驟小卡 ---------- */

.buy-steps-mini {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}

.buy-step-mini {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border-radius: 11px;
  background: var(--navy-700);
  border: 1px solid var(--border-strong);
}

.buy-step-num {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: #1a1200;
  background: linear-gradient(135deg, #f0d98a, #d4af37);
}

.buy-step-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
  text-align: left;
}

/* ---------- 頁面最下方的綁定推薦人 ---------- */

/*
 * 依需求從頁首移到整頁最底，並放大。
 *
 * 為什麼位置換到最底下：
 *   頁首版本太打擾（每頁一進來就看到），
 *   而且使用者通常在「做完這一步」時才會想到推薦人的事。
 *
 * 為什麼要更大：
 *   原本頁首 pill 只有 11.5px，在手機上不好點。
 *   現在主字 15px、副標 11.5px、整塊高度約 64px，
 *   符合可點擊區域的建議尺寸（44px 以上）。
 */
.guide-foot-bind {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.guide-bindref-big {
  padding: 16px 17px;
  gap: 13px;
}

.guide-bindref-big .guide-bindref-ico {
  width: 42px;
  height: 42px;
  font-size: 19px;
  border-radius: 11px;
}

.guide-bindref-big .guide-bindref-main {
  font-size: 15px;
}

.guide-bindref-big .guide-bindref-sub {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.5;
}

.guide-bindref-big .guide-bindref-arrow {
  font-size: 22px;
}

/* ---------- 綁定推薦人連結 ---------- */

/*
 * 放在第 4 步（建好錢包）下方。
 * 用外框樣式而非實心，避免和「跳過了，下一步」這顆主按鈕搶焦點。
 */
.guide-bindref {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 11px;
  text-decoration: none;
  background: rgba(212, 175, 55, 0.1);
  border: 1px dashed var(--border-strong);
  transition: all 0.2s;
}

.guide-bindref:hover {
  background: rgba(212, 175, 55, 0.17);
  border-color: var(--gold-500);
}

.guide-bindref-ico {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 16px;
  background: rgba(212, 175, 55, 0.26);
}

.guide-bindref-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
  line-height: 1.4;
}

.guide-bindref-main {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.guide-bindref-sub {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--text-muted);
}

.guide-bindref-arrow {
  flex-shrink: 0;
  font-size: 19px;
  color: var(--gold-200);
}

/* 「打開 APP」連結：深色按鈕，與綠色購買按鈕區隔 */
.guide-openapp {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin-top: 10px;
  padding: 13px 15px;
  border-radius: 11px;
  text-decoration: none;
  background: #12141c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(18, 20, 28, 0.22);
  transition: transform 0.18s, box-shadow 0.18s;
}

.guide-openapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(18, 20, 28, 0.32);
}

.guide-openapp-ico {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 16px;
  background: #2980fe;
}

.guide-openapp-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
  line-height: 1.4;
}

.guide-openapp-main {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
}

.guide-openapp-sub {
  margin-top: 2px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
}

.guide-openapp-arrow {
  flex-shrink: 0;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.4);
}

/* 買 U 入口：綠色（與 LINE 客服同色系，但更深），與一般下一步區隔 */
.guide-next-buy {
  margin-bottom: 10px;
  color: #fff;
  background: linear-gradient(135deg, #1f9d55, #0e7a3d);
  box-shadow: 0 6px 18px rgba(14, 122, 61, 0.32);
}

.guide-next-buy:hover {
  box-shadow: 0 10px 24px rgba(14, 122, 61, 0.44);
}

/* 次要按鈕（例如完成頁的「我要買 USDT」）：外框樣式，不搶主按鈕 */
.guide-next-alt {
  margin-bottom: 10px;
  color: var(--gold-200);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
}

.guide-next-alt:hover {
  background: rgba(212, 175, 55, 0.12);
  box-shadow: inset 0 0 0 1.5px var(--gold-500), 0 6px 18px rgba(212, 175, 55, 0.22);
}

/* ---------- 手機微調 ---------- */

@media (max-width: 480px) {
  .guide-wrap {
    padding: 16px 14px 0;
  }

  .guide-h1 {
    font-size: 17.5px;
  }

  .guide-big-icon {
    width: 64px;
    height: 64px;
    font-size: 29px;
  }

  .guide-page-title {
    font-size: 19px;
  }

  .guide-page-desc {
    font-size: 13px;
  }

  .guide-field-value {
    font-size: 11.5px;
  }

  .guide-next {
    padding: 15px;
    font-size: 15px;
  }

  .tp-mock {
    padding: 16px 12px;
  }

  .tp-mock-main {
    font-size: 13px;
  }
}
