/* ============================================================================
   專案名稱: IRVault - 傳送資產頁面專屬樣式表 (send-page.css)
   視覺規範: Cyberpunk / Modern Dark | 滿版滾動、智慧表單與底部固定吸附按鈕
   基底樣式: 繼承自 css/vault.css
   ============================================================================ */

/* 🌟 全螢幕視窗鎖定，交由內部 main 容器滑動 (與 vault.html 一致) */
body.send-app-body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 🌟 滿版主滾動容器 (Main Scroll Area) */
.send-main-scroll-area {
  flex: 1;
  width: 100%;
  padding-top: 56px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
  scrollbar-width: none;
}

.send-main-scroll-area::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.send-app-content-wrapper {
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  padding: 12px 16px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* 🌟 核心卡片容器 */
.send-card {
  background: linear-gradient(180deg, var(--c-glass) 0%, var(--c-glass) 100%);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 9px 12px;
  box-shadow: 0 4px 16px var(--c-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

/* 🌟 卡片階梯層疊上下文 (Stacking Context)：來源卡片 > 資產金額卡片 > 接收地址卡片，防下拉被下層遮擋 */
.send-source-card {
  position: relative;
  z-index: 25;
}

.send-hero-amount-card {
  position: relative;
  z-index: 20;
  padding: 9px 12px;
}

.send-recipient-card {
  position: relative;
  z-index: 15;
}

.send-card:hover {
  border-color: var(--c-border-strong);
}

/* 🌟 Delphi 風格幣種全寬選擇按鈕 (對齊發送帳戶與接收帳戶規格) */
.send-token-combobox-wrapper {
  position: relative;
  width: 100%;
  z-index: 105;
}

.send-token-picker-btn {
  width: 100%;
  height: 42px;
  min-height: 42px;
  box-sizing: border-box;
}

.send-asset-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.send-token-chevron {
  width: 14px;
  height: 14px;
  stroke: var(--c-text-2);
  margin-left: 6px;
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.send-token-picker-btn.is-open .send-token-chevron {
  transform: rotate(180deg);
  stroke: var(--c-text);
}

/* 🌟 可用代幣數量獨立列 (移至下一行、靠右展現) */
.send-balance-subrow {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-top: 3px;
  margin-bottom: 2px;
}

.send-token-select-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  z-index: 10;
  font-family: Consolas, "Courier New", Courier, monospace !important;
}

.send-token-select-overlay option {
  background: var(--c-surface-2);
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  font-family: Consolas, "Courier New", Courier, monospace !important;
  white-space: pre !important;
}

.send-asset-icon-wrapper {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.send-asset-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.send-token-text-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.send-asset-symbol {
  font-size: 15px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: 0.2px;
}

.send-balance-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  background: var(--c-fill);
  border: 1px solid var(--c-border);
  padding: 5px 10px;
  border-radius: 10px;
}

/* 🌟 @send 可用餘額：併入「選擇資產」標題列右側之純文字 (無膠囊外框) */
.send-balance-inline {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.send-balance-label {
  font-size: 11.5px;
  color: var(--c-text-2);
  font-weight: 600;
}

.send-balance-amount {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* 🌟 徹底移除數字輸入框原生上下增減按鈕 (Spin Buttons) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
.send-hero-amount-input::-webkit-outer-spin-button,
.send-hero-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

input[type="number"],
.send-hero-amount-input {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* 數量大字體輸入區 (精簡高度) */
.send-amount-hero-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 10px 4px 10px;
  margin: 5px 0 4px 0;
  background: var(--c-sunken);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.send-amount-hero-wrapper:focus-within {
  background: var(--c-sunken);
  border-color: var(--c-accent-line);
  box-shadow: 0 0 12px var(--c-accent-glow);
}

.send-amount-input-row {
  width: 100%;
  display: flex;
  justify-content: center;
}

.send-hero-amount-input {
  font-size: 28px;
  height: 34px;
  font-weight: 800;
  color: var(--c-text);
  text-align: center;
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  max-width: 320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  caret-color: var(--c-accent);
}

.send-hero-amount-input::placeholder {
  color: var(--c-text-3);
}

.send-usd-equivalent {
  font-size: 11px;
  color: var(--c-text-2);
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

/* 🌟 百分比快捷選擇列 */
.send-percent-group {
  display: flex;
  gap: 6px;
  width: 100%;
  padding-top: 3px;
}

.percent-btn {
  flex: 1;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-fill);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.percent-btn:hover {
  background: var(--c-accent-soft);
  border-color: var(--c-accent-line);
  color: var(--c-accent);
}

.percent-btn:active {
  transform: scale(0.96);
}

/* 🌟 2. 路由與接收地址卡片 */
.send-routing-card {
  gap: 12px;
}

.send-card-divider {
  height: 1px;
  background: var(--c-fill);
  margin: 2px 0;
}

.send-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.send-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.send-field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text-2);
  letter-spacing: 0.5px;
}

.send-select-field {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background: var(--c-surface-2);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.send-select-field:focus {
  border-color: var(--primary-neon);
  box-shadow: 0 0 10px var(--c-accent-glow);
}

/* 🌟 接收帳戶右側快速新增/地址管理 + 按鈕 */
.send-add-address-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--c-fill);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-sizing: border-box;
}

.send-add-address-btn:hover {
  background: var(--c-fill-strong);
  border-color: var(--c-border-strong);
  color: var(--c-text);
  transform: scale(1.05);
}

.send-add-address-btn:active {
  transform: scale(0.95);
}

.send-add-address-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* 🌟 自訂深色帳戶選擇膠囊按鈕 (發送/接收帳戶 - 與資產按鈕等高 42px) */
.send-account-picker-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 42px;
  min-height: 42px;
  box-sizing: border-box;
  padding: 0 10px;
  background: var(--c-sunken);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
  text-align: left;
}

.send-account-picker-btn:hover {
  background: var(--c-sunken);
  border-color: var(--c-border-strong);
  box-shadow: 0 0 12px var(--c-shadow);
}

/* 展開時下方無倒角、無縫銜接下拉選單 (100% 實體色塊遮蔽) */
.send-account-picker-btn.is-open {
  border-color: var(--c-border-strong) !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  background: var(--c-surface) !important;
  box-shadow: none !important;
  z-index: 301;
}

.send-picker-label {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--c-text);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.send-recipient-sublabel-row {
  margin-top: 6px;
  margin-bottom: 2px;
}

/* 🌟 多行文字地址輸入框 (2行清晰版，44/42 碼地址完整呈現、字體與高度同步放大) */
.send-textarea-address-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  max-height: 68px;
  padding: 8px 10px;
  background: var(--c-sunken);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  font-size: 13.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.4;
  word-break: break-all;
  outline: none;
  resize: none;
  transition: all 0.2s ease;
}

.send-textarea-address-input:focus {
  border-color: var(--primary-neon);
  box-shadow: 0 0 12px var(--c-accent-glow);
  background: var(--c-sunken);
}

.send-textarea-address-input::placeholder {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  color: var(--c-text-3);
}

/* 🌟 貼上按鈕操作列 (與百分比按鈕高度一致：28px) */
.send-paste-action-bar {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  margin-top: 5px;
}

.send-paste-action-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  background: var(--c-fill);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-sizing: border-box;
}

.send-paste-action-pill-btn:hover {
  background: var(--c-accent-soft);
  border-color: var(--c-accent-line);
  color: var(--c-accent);
}

.send-paste-action-pill-btn:active {
  transform: scale(0.96);
}

.send-paste-action-pill-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.send-clear-action-pill-btn:hover {
  background: var(--c-danger-soft);
  border-color: var(--c-danger-line);
  color: var(--c-danger);
}

.send-action-pill-btn:hover {
  background: var(--c-accent-soft);
  border-color: var(--primary-neon);
  box-shadow: 0 0 10px var(--c-accent-glow);
}

.send-action-pill-btn:active {
  transform: scale(0.96);
}

/* 🌟 驗證提示橫幅 */
.send-validation-banner,
.validation-banner {
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  padding: 7px 10px;
  margin-top: 6px;
  display: none;
  line-height: 1.4;
}

.send-validation-banner.valid,
.send-validation-banner.success,
.validation-banner.success {
  display: block !important;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border: 1px solid var(--c-accent-line);
}

.send-validation-banner.invalid,
.send-validation-banner.error,
.validation-banner.error {
  display: block !important;
  background: var(--c-danger-soft);
  color: var(--c-danger);
  border: 1px solid var(--c-danger-line);
}

/* 🌟 3. 費用摘要卡片 (精簡高度) */
.send-summary-card {
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 6px 12px;
  gap: 3px;
  box-shadow: none;
}

.send-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.send-summary-label {
  color: var(--c-text-2);
  font-weight: 500;
}

.send-summary-value {
  color: var(--c-text);
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-variant-numeric: tabular-nums;
}

.send-highlight-value {
  color: var(--c-text);
  font-size: 12.5px;
  font-weight: 800;
}

.text-neon {
  color: var(--c-accent) !important;
}

/* 🌟 底部滾動緩衝墊片 (精簡版) */
.send-bottom-spacer {
  height: 60px;
  width: 100%;
  flex-shrink: 0;
  pointer-events: none;
}

/* 🌟 確認傳送按鈕規格 (啟用與禁用 - 高度 42px 俐落膠囊按鈕) */
.send-submit-btn {
  border-radius: 21px !important;
  height: 42px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.send-submit-btn:not(:disabled) {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent) 100%) !important;
  color: var(--c-on-accent) !important;
  border-color: var(--c-accent) !important;
  box-shadow: 0 4px 20px var(--c-accent-glow) !important;
}

.send-submit-btn:not(:disabled) .btn-action-icon {
  stroke: var(--c-on-accent) !important;
}

.send-submit-btn:not(:disabled) span {
  color: var(--c-on-accent) !important;
  font-weight: 800 !important;
}

.send-submit-btn:not(:disabled):hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 24px var(--c-accent-glow) !important;
  transform: translateY(-1px) !important;
}

.send-submit-btn:not(:disabled):active {
  transform: translateY(1px) !important;
}

.send-submit-btn:disabled,
.vault-bottom-action-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  border: 1px solid var(--c-border) !important;
  color: var(--c-text-3) !important;
  background: var(--c-fill) !important;
  box-shadow: none !important;
  transform: none !important;
}

.send-submit-btn:disabled .btn-action-icon,
.vault-bottom-action-btn:disabled .btn-action-icon {
  stroke: var(--c-text-3) !important;
}

.send-submit-btn:disabled span,
.vault-bottom-action-btn:disabled span {
  color: var(--c-text-3) !important;
  font-size: 15px;
  font-weight: 600;
}

/* 🌟 交易處理中彈窗 (Modal Dialog) */
.send-modal-dialog {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  padding: 28px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 24px 60px var(--c-shadow-strong);
  animation: tokenModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.send-modal-icon-row {
  margin-bottom: 16px;
}

.send-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--c-accent-line);
  border-top-color: var(--primary-neon);
  border-radius: 50%;
  animation: sendSpin 0.9s linear infinite;
}

@keyframes sendSpin {
  to {
    transform: rotate(360deg);
  }
}

.send-modal-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--c-text);
}

.send-modal-message {
  margin: 0 0 20px 0;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
  word-break: break-all;
}

.send-modal-btn {
  width: fit-content;
  min-width: 140px;
  margin: 4px auto 0 auto;
  padding: 9px 24px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-weight: 700;
  font-size: 13px;
  border-radius: 22px;
  border: 1px solid var(--c-accent-line);
  cursor: pointer;
  box-shadow: 0 0 16px var(--c-accent-glow);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.send-modal-btn:hover {
  background: var(--c-accent-soft);
  border-color: var(--c-accent);
  box-shadow: 0 0 20px var(--c-accent-glow);
  transform: translateY(-1px);
}

.send-modal-btn:active {
  transform: scale(0.96);
}

@keyframes assetFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 搜尋框 */
.asset-search-wrapper {
  padding: 12px 18px;
  flex-shrink: 0;
}

.asset-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 0 12px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.asset-search-box:focus-within {
  border-color: var(--c-accent-line);
  box-shadow: 0 0 0 2px var(--c-accent-glow);
  background: var(--c-surface-2);
}

.asset-search-icon {
  width: 16px;
  height: 16px;
  stroke: var(--c-text-3);
  margin-right: 8px;
  flex-shrink: 0;
}

.asset-search-clear-btn {
  background: transparent;
  border: none;
  color: var(--c-text-2);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
}

/* 滾動內容本體 */
.asset-modal-scroll-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 18px 24px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-fill-strong) transparent;
}

.asset-modal-scroll-body::-webkit-scrollbar {
  width: 4px;
}

.asset-modal-scroll-body::-webkit-scrollbar-thumb {
  background: var(--c-fill-strong);
  border-radius: 4px;
}

/* 分組標題 */
.asset-group-section {
  margin-top: 14px;
}

.asset-group-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text-2);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

/* 上次使用 (Recent Used) 容器 */
.asset-recent-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asset-recent-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.asset-recent-card:hover {
  background: var(--c-surface-2);
  border-color: var(--c-accent-line);
  box-shadow: 0 0 12px var(--c-accent-glow);
}

.asset-recent-action-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-2);
  background: var(--c-fill);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--c-border);
}

/* 幣種列表 (Token List) 每列項目 - 完全對齊截圖規格 */
.asset-token-list-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.asset-token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.asset-token-row:hover {
  background: var(--c-fill);
}

.asset-token-row.selected {
  background: var(--c-accent-soft);
  border: 1px solid var(--c-accent-line);
}

/* 左側：圖標 + 代幣符號與全名 */
.asset-token-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-token-avatar-wrapper {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.asset-token-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-token-chain-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 7.5px;
  font-weight: 800;
  background: var(--c-surface-2);
  color: var(--c-accent);
  border: 1px solid var(--c-accent-line);
  border-radius: 3px;
  padding: 0 2px;
  line-height: 1;
}

.asset-token-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.asset-token-symbol {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.1px;
}

.asset-token-tag {
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--c-fill-strong);
  color: var(--c-text-2);
  font-weight: 600;
}

.asset-token-name {
  font-size: 11.5px;
  color: var(--c-text-2);
  font-weight: 500;
}

/* 右側：持幣數量 + 折合美金估值 */
.asset-token-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.asset-token-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}

.asset-token-usd {
  font-size: 11.5px;
  color: var(--c-text-2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.asset-token-empty-tip {
  text-align: center;
  color: var(--c-text-3);
  padding: 30px 10px;
  font-size: 13px;
}

/* 🌟 二維碼掃描膠囊按鈕 (Cyberpunk Pill Button) */
.send-scan-action-pill-btn {
  background: var(--c-fill);
  border: 1px solid var(--c-border-strong);
  color: var(--c-text);
  margin-left: 8px;
}

.send-scan-action-pill-btn:hover {
  background: var(--c-accent-soft);
  border-color: var(--c-accent-line);
  color: var(--c-accent);
  box-shadow: 0 0 12px var(--c-accent-glow);
}

/* 🌟 5. 二維碼全螢幕相機掃描彈窗 (Cyberpunk QR Scanner Modal) */
.send-scanner-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-scanner-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--c-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.send-scanner-dialog {
  position: relative;
  width: 90%;
  max-width: 400px;
  background: var(--c-surface);
  border: 1px solid var(--c-accent-line);
  border-radius: 20px;
  box-shadow: 0 12px 40px var(--c-shadow-strong), 0 0 20px var(--c-accent-glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scannerModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scannerModalIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.send-scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border);
}

.send-scanner-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
}

.send-scanner-close-btn {
  background: transparent;
  border: none;
  color: var(--c-text-2);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.send-scanner-close-btn:hover {
  color: var(--c-text);
}

.send-scanner-body {
  position: relative;
  width: 100%;
  height: 300px;
  background: var(--c-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.send-qr-reader-viewport {
  width: 100% !important;
  height: 100% !important;
  position: relative;
}

.send-qr-reader-viewport video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* 🌟 明亮掃描框與取景器加強 (Neon Cyberpunk Viewfinder) */
#sendQrReader__scan_region {
  border: 2px solid var(--c-accent) !important;
  box-shadow: 0 0 20px var(--c-accent-glow), inset 0 0 15px var(--c-accent-glow) !important;
  border-radius: 12px !important;
  position: relative;
}

/* 針對 Html5Qrcode 生成的遮罩陰影區域半透明處理，讓中間取景框極其鮮明 */
#sendQrReader__scan_region > div {
  border: 2px solid var(--c-accent) !important;
  box-shadow: 0 0 12px var(--c-accent-glow) !important;
}

/* Html5Qrcode 取景框角落與邊界強化 */
#sendQrReader img {
  display: none !important;
}

/* 綠色雷射掃描動畫線 */
.send-scanner-laser-line {
  display: none !important;
}

.send-scanner-hint {
  display: none !important;
}

.send-scanner-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* 讀取檔案與離開按鈕：完全等大 (等寬度、等高度、等內邊距) */
.send-scanner-file-label,
.send-scanner-exit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 120px;
  height: 38px;
  padding: 0;
  background: var(--c-fill);
  border: 1px solid var(--c-border-strong);
  border-radius: 22px;
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  margin: 0;
}

.send-scanner-file-label:hover {
  background: var(--c-accent-soft);
  border-color: var(--c-accent-line);
  color: var(--c-accent);
  box-shadow: 0 0 12px var(--c-accent-glow);
}

.send-scanner-file-label svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.send-scanner-exit-btn:hover {
  background: var(--c-danger-soft);
  border-color: var(--c-danger-line);
  color: var(--c-danger);
  box-shadow: 0 0 12px var(--c-shadow);
}

/* 🌟 卡片外獨立確認傳送操作列 (大小適中、不撐滿、精緻膠囊規格) */
.send-card-action-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
  margin-bottom: 24px;
  width: 100%;
}

.send-submit-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  height: 38px;
  padding: 0 24px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.send-submit-inline-btn:not(:disabled) {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent) 100%);
  color: var(--c-on-accent);
  border-color: var(--c-accent);
  box-shadow: 0 3px 16px var(--c-accent-glow);
}

.send-submit-inline-btn:not(:disabled) .btn-action-icon {
  stroke: var(--c-on-accent);
}

.send-submit-inline-btn:not(:disabled) span {
  color: var(--c-on-accent);
  font-weight: 800;
}

.send-submit-inline-btn:not(:disabled):hover {
  filter: brightness(1.06);
  box-shadow: 0 5px 20px var(--c-accent-glow);
  transform: translateY(-1px);
}

.send-submit-inline-btn:not(:disabled):active {
  transform: translateY(1px);
}

.send-submit-inline-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  border: 1px solid var(--c-border);
  color: var(--c-text-3);
  background: var(--c-fill);
  box-shadow: none;
  transform: none;
}

.send-submit-inline-btn:disabled .btn-action-icon {
  stroke: var(--c-text-3);
}

.send-submit-inline-btn:disabled span {
  color: var(--c-text-3);
  font-size: 13px;
  font-weight: 600;
}

/* 🌟 支援鏈別專用防呆提示文字 (純文字表述，靠左對齊微貼上方卡片，無容器邊框與背景) */
.chain-support-tip {
  margin: -2px 0 12px 2px;
  padding: 0 2px;
  background: transparent;
  border: none;
  color: var(--c-text-2);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: left;
  box-sizing: border-box;
  width: 100%;
}

/* 🌟 InfoRecReg Solana Pay 掃碼付款 QR 框 (QR 須維持白底以確保掃描辨識，對齊 receive-page.css .receive-qr-box) */
.reg-spay-qr-box {
  width: 220px;
  max-width: 100%;
  margin: 8px auto;
  padding: 8px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 12px;
  line-height: 0;
}

.reg-spay-qr-box svg {
  display: block;
  width: 100%;
  height: auto;
}
