/* =========================================================================
   綁定提領帳戶 · Bind Bank
   延續 withdraw.css / member.css 語言
   ========================================================================= */

/* ---------- Page head ---------- */
.bb-head {
  padding: 8px 0 4px;
}
.bb-head h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--nx-ink-900);
}
.bb-head p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--nx-ink-500);
}

/* ---------- Card ---------- */
.bb-card {
  padding: 32px 32px 28px;
}
@media (max-width: 640px) {
  .bb-card { padding: 24px 20px 22px; }
}

/* ---------- Form ---------- */
.bb-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.bb-field {
  display: block;
}

/* Input / Select 通用 */
.bb-input,
.bb-select {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--nx-line-strong);
  border-radius: 12px;
  background: #fff;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--nx-ink-900);
  outline: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  letter-spacing: 0.005em;
}
.bb-input.mono {
  font-family: var(--nx-font-mono);
  letter-spacing: 0.04em;
}
.bb-input::placeholder {
  color: var(--nx-ink-300);
}
.bb-input:hover,
.bb-select:hover {
  border-color: rgba(37, 99, 235, 0.35);
}
.bb-input:focus,
.bb-select:focus {
  border-color: var(--nx-primary, #2563EB);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

/* Select 自繪 caret */
.bb-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.bb-select:invalid {
  color: var(--nx-ink-300);
}
.bb-select option { color: var(--nx-ink-900); }

/* Hint */
.bb-hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--nx-ink-500);
}
.bb-hint.is-error {
  color: var(--nx-danger, #EF4444);
}

/* Actions */
.bb-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--nx-line);
}
@media (max-width: 560px) {
  .bb-actions { flex-direction: column-reverse; }
  .bb-actions .bb-btn { width: 100%; }
}
.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
  font-family: inherit;
  min-width: 120px;
}
.bb-btn.is-ghost {
  background: #fff;
  border-color: var(--nx-line-strong);
  color: var(--nx-ink-700);
}
.bb-btn.is-ghost:hover {
  border-color: var(--nx-ink-400);
  color: var(--nx-ink-900);
}
.bb-btn.is-primary {
  background: var(--nx-primary, #2563EB);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.45);
}
.bb-btn.is-primary:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -8px rgba(37, 99, 235, 0.55);
}
.bb-btn.is-primary:disabled {
  background: rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.35);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.bb-btn svg { width: 15px; height: 15px; }

/* Success modal 內文 */
.bb-success-desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--nx-ink-500);
  text-align: center;
}
